socz80: update to new _discard
authorAlan Cox <alan@etchedpixels.co.uk>
Tue, 25 Nov 2014 18:00:41 +0000 (18:00 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Tue, 25 Nov 2014 18:00:41 +0000 (18:00 +0000)
Kernel/platform-socz80/crt0.s
Kernel/platform-socz80/uzi.lnk [new file with mode: 0644]

index fbbf7a6..702a957 100644 (file)
@@ -8,7 +8,6 @@
         ; when they are first seen.
         .area _CODE
         .area _CODE2
-       .area _DISCARD
         .area _CONST
         .area _DATA
         .area _INITIALIZED
@@ -21,6 +20,7 @@
         .area _GSINIT
         .area _GSFINAL
         .area _COMMONMEM
+       .area _DISCARD
 
         ; imported symbols
         .globl _fuzix_main
@@ -33,6 +33,8 @@
         .globl l__BSS
         .globl s__DATA
         .globl l__DATA
+        .globl s__DISCARD
+        .globl l__DISCARD
         .globl kstack_top
         .globl _trap_monitor
 
@@ -63,16 +65,12 @@ stop:   halt
         .area _GSINIT
 gsinit::
         ld bc, #l__INITIALIZER
-        ld a, b
-        or a, c
-        jr Z, gsinit_next
         ld de, #s__INITIALIZED
         ld hl, #s__INITIALIZER
         ldir
-gsinit_next:
-        ; other module's code is appended here
-
-        .area _GSFINAL
+        ld de, #s__DISCARD
+        ld bc, #l__DISCARD
+        ldir
         ; we clear _DATA and _BSS
         ld bc, #l__BSS
         ld de, #s__BSS
diff --git a/Kernel/platform-socz80/uzi.lnk b/Kernel/platform-socz80/uzi.lnk
new file mode 100644 (file)
index 0000000..3bb37ca
--- /dev/null
@@ -0,0 +1,39 @@
+-mwxuy
+-i uzi.ihx
+-b _CODE=0x0088
+-b _COMMONMEM=0xF000
+-b _DISCARD=0xE000
+-l z80
+platform-socz80/crt0.rel
+platform-socz80/commonmem.rel
+platform-socz80/socz80.rel
+start.rel
+version.rel
+usermem.rel
+platform-socz80/usermem.rel
+platform-socz80/tricks.rel
+platform-socz80/main.rel
+bank16k.rel
+lowlevel-z80.rel
+timer.rel
+kdata.rel
+platform-socz80/devrd.rel
+platform-socz80/devsd.rel
+platform-socz80/devsd_hw.rel
+platform-socz80/devrd_hw.rel
+platform-socz80/devices.rel
+devio.rel
+filesys.rel
+process.rel
+inode.rel
+syscall_exec.rel
+syscall_fs.rel
+syscall_fs2.rel
+syscall_proc.rel
+syscall_other.rel
+tty.rel
+mm.rel
+devsys.rel
+platform-socz80/devlpr.rel
+platform-socz80/devtty.rel
+-e