v65c816-big: sort out the memory mapping and file build
authorAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 23:14:20 +0000 (23:14 +0000)
committerAlan Cox <alan@linux.intel.com>
Mon, 1 Jan 2018 23:14:20 +0000 (23:14 +0000)
Kernel/platform-v65c816-big/Makefile
Kernel/platform-v65c816-big/ld65.cfg

index 8756982..04fa0e1 100644 (file)
@@ -48,4 +48,4 @@ image:
        dd if=../fuzix.bin of=fuzix.img bs=256 skip=255 count=1
        dd if=/dev/zero of=fuzix.img bs=256 seek=1  count=2
        dd if=fuzix.i of=fuzix.img bs=256 seek=3 count=239
-       dd if=fuzix.d of=fuzix.img bs=256 skip=2 seek=242 count=10
+       dd if=fuzix.d of=fuzix.img bs=256 skip=3 seek=242 count=10
index 6d3a644..18e2c7f 100644 (file)
@@ -15,8 +15,10 @@ MEMORY {
 #Bank1
        MAIN:   file = "fuzix.i", start = $0300, size = $EF00, type = rw, fill = yes;
 #Bank2
-       UDATA:  file = "fuzix.d", start = $0000, size = $0200, type = rw, fill = yes;
-       BSEG:   file = "fuzix.d", start = $0200, size = $FE00, type = rw, fill = yes;
+# DUMMY is a hack so we don't get udata in ZP for now
+       DUMMY:  file = "fuzix.d", start = $0000, size = $0100, type = rw, fill = yes;
+       UDATA:  file = "fuzix.d", start = $0100, size = $0200, type = rw, fill = yes;
+       BSEG:   file = "fuzix.d", start = $0300, size = $FD00, type = rw, fill = yes;
 }
 
 SEGMENTS {