From: Alan Cox Date: Tue, 25 Nov 2014 18:00:41 +0000 (+0000) Subject: socz80: update to new _discard X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=59863df13943ba7695d2f4baf2299bc6a4bdfb5e;p=FUZIX.git socz80: update to new _discard --- diff --git a/Kernel/platform-socz80/crt0.s b/Kernel/platform-socz80/crt0.s index fbbf7a65..702a957b 100644 --- a/Kernel/platform-socz80/crt0.s +++ b/Kernel/platform-socz80/crt0.s @@ -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 index 00000000..3bb37ca0 --- /dev/null +++ b/Kernel/platform-socz80/uzi.lnk @@ -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