easy-z80: arrange memory map correctly for alignments
authorAlan Cox <alan@linux.intel.com>
Sun, 10 Mar 2019 23:33:54 +0000 (23:33 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 10 Mar 2019 23:33:54 +0000 (23:33 +0000)
And with this it seems to actually work

Kernel/platform-easy-z80/crt0.s
Kernel/platform-easy-z80/fuzix.lnk

index 0182b46..bcd42c0 100644 (file)
@@ -12,7 +12,6 @@
         .area _CODE2
         .area _CONST
         .area _INITIALIZED
-       .area _SERIAL
        .area _SERIALDATA
         .area _DATA
         .area _BSEG
@@ -25,6 +24,7 @@
         .area _DISCARD
         .area _INITIALIZER ; binman copies this to the right place for us
         .area _COMMONMEM
+       .area _SERIAL
 
         ; exported symbols
         .globl init
@@ -81,3 +81,5 @@ mappedok:
 stop:   halt
         jr stop
 
+       .area _BOOT
+       jp init
index e9f4c23..fa7a45b 100644 (file)
@@ -1,8 +1,10 @@
 -mwxuy
 -i fuzix.ihx
--b _CODE=0x0100
+-b _CODE=0x0500
 -b _DISCARD=0xD000
 -b _COMMONMEM=0xEA00
+-b _SERIAL=0x0100
+-b _BOOT=0x0100
 -l z80
 platform-easy-z80/crt0.rel
 platform-easy-z80/commonmem.rel