From: Alan Cox Date: Mon, 1 Jan 2018 23:14:20 +0000 (+0000) Subject: v65c816-big: sort out the memory mapping and file build X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=1dc326e0b2c47e56f3d7f82b8c433ff45cf01143;p=FUZIX.git v65c816-big: sort out the memory mapping and file build --- diff --git a/Kernel/platform-v65c816-big/Makefile b/Kernel/platform-v65c816-big/Makefile index 87569828..04fa0e13 100644 --- a/Kernel/platform-v65c816-big/Makefile +++ b/Kernel/platform-v65c816-big/Makefile @@ -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 diff --git a/Kernel/platform-v65c816-big/ld65.cfg b/Kernel/platform-v65c816-big/ld65.cfg index 6d3a644c..18e2c7fa 100644 --- a/Kernel/platform-v65c816-big/ld65.cfg +++ b/Kernel/platform-v65c816-big/ld65.cfg @@ -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 {