trs80m1: adjust the istack_switched_sp so it doesn't get scribbled
authorAlan Cox <alan@linux.intel.com>
Fri, 10 Aug 2018 23:29:00 +0000 (00:29 +0100)
committerAlan Cox <alan@linux.intel.com>
Fri, 10 Aug 2018 23:29:00 +0000 (00:29 +0100)
With this fixed we seem to be back in business and 768 bytes better off

Kernel/platform-trs80m1/commonmem.s
Kernel/platform-trs80m1/trs80.s

index 4ca88b3..918bdb0 100644 (file)
@@ -32,8 +32,6 @@ kstack_base:
         .db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
 kstack_top:
 
-istack_switched_sp: .dw 0
-
 ;
 ;      We link the pre bank switching setup code in 4400-44FF and a bit
 ;      then convert it into istack.
index a0949bd..3175ab5 100644 (file)
@@ -60,6 +60,7 @@
 ;      into the istack. Don't screw around with the link order!
 ;
 istack_top:
+istack_switched_sp: .dw 0
 
 _platform_monitor:
            push af