z80pack: Keep discard separate
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 25 Nov 2014 15:54:39 +0000 (15:54 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 25 Nov 2014 15:54:39 +0000 (15:54 +0000)
We can now discard the _DISCARD segment - yay, another 1K

Kernel/platform-z80pack/crt0.s

index 95969bc..5594f37 100644 (file)
@@ -8,7 +8,6 @@
         ; when they are first seen.
         .area _CODE
         .area _CODE2
-       .area _DISCARD          ;        not discarded yet
         .area _CONST
         .area _DATA
         .area _INITIALIZED
@@ -20,6 +19,7 @@
         .area _INITIALIZER
         .area _GSINIT
         .area _GSFINAL
+       .area _DISCARD
         .area _COMMONMEM
 
         ; imported symbols
@@ -29,6 +29,8 @@
         .globl s__INITIALIZER
         .globl s__COMMONMEM
         .globl l__COMMONMEM
+        .globl s__DISCARD
+        .globl l__DISCARD
         .globl s__DATA
         .globl l__DATA
         .globl kstack_top
@@ -47,6 +49,10 @@ init:
        ld de, #s__COMMONMEM
        ld bc, #l__COMMONMEM
        ldir
+       ; and the discard
+       ld de, #s__DISCARD
+       ld bc, #l__DISCARD
+       ldir
        ; then zero the data area
        ld hl, #s__DATA
        ld de, #s__DATA + 1