trs80: fix crash on boot when we zap the stack
authorAlan Cox <alan@linux.intel.com>
Fri, 15 May 2015 21:35:17 +0000 (22:35 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 15 May 2015 21:35:17 +0000 (22:35 +0100)
Kernel/platform-trs80/crt0.s

index dad4312..234ad1a 100644 (file)
@@ -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