coco2cart: buffer pool into asm
authorAlan Cox <alan@linux.intel.com>
Sun, 4 Dec 2016 13:46:01 +0000 (13:46 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 4 Dec 2016 13:46:01 +0000 (13:46 +0000)
This moves the buffer pool into its own section so that we can make sure
it lies next to discard

Kernel/platform-coco2cart/coco2.s

index 5221f44..c32267e 100644 (file)
@@ -21,6 +21,7 @@
 
        .globl _ramsize
        .globl _procmem
+       .globl _bufpool
 
        ; imported
        .globl unix_syscall_entry
        .globl null_handler
        .globl _vtoutput
 
+       .globl ___hard_di
+       .globl ___hard_ei
+       .globl ___hard_irqrestore
+
        ; exported debugging tools
        .globl _trap_monitor
        .globl _trap_reboot
        .globl outchar
-       .globl ___hard_di
-       .globl ___hard_ei
-       .globl ___hard_irqrestore
 
        include "kernel.def"
        include "../kernel09.def"
@@ -233,3 +235,9 @@ romin:
        .db 0
 romsave:
        .db 0
+
+       .area .bufpool
+_bufpool:
+       .ds 520*6               ; initial buffers
+
+       ; Discard follows this so will be reclaimed