From: Alan Cox Date: Fri, 15 May 2015 21:35:17 +0000 (+0100) Subject: trs80: fix crash on boot when we zap the stack X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=ccf048f3734822e8b31877d5f0d45c24b3f85279;p=FUZIX.git trs80: fix crash on boot when we zap the stack --- diff --git a/Kernel/platform-trs80/crt0.s b/Kernel/platform-trs80/crt0.s index dad4312a..234ad1aa 100644 --- a/Kernel/platform-trs80/crt0.s +++ b/Kernel/platform-trs80/crt0.s @@ -42,7 +42,6 @@ start: ld sp, #kstack_top ; move the common memory where it belongs ld hl, #s__DATA - push hl ld de, #s__COMMONMEM ld bc, #l__COMMONMEM ldir @@ -51,7 +50,7 @@ start: ld bc, #l__DISCARD ldir ; then zero the data area - pop hl ; s__DATA + ld hl, #s__DATA ld de, #s__DATA + 1 ld bc, #l__DATA - 1 ld (hl), #0