tgl6502: Store the reference commonmem ROM copy right at the top of memory
authorAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 20:46:06 +0000 (20:46 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 16 Jan 2015 20:46:06 +0000 (20:46 +0000)
This plus discard etc can live anywhere really so stick them right up the top
so it's easier to see what our memory usage looks like

Kernel/platform-tgl6502/ld65.cfg

index a18cf93..d10e008 100644 (file)
@@ -2,21 +2,22 @@ MEMORY {
        RAMZ:   start = $0000, size = $0100, type = rw, define = yes;
        RAM0:   start = $0200, size = $1E00, type = rw, define = yes;
        RAM1:   start = $2000, size = $2000, type = rw, define = yes;
-       ROM0:   start = $4000, size = $C000, fill = yes;
+       ROM0:   start = $4000, size = $B000, fill = yes;
+       ROM1:   start = $F000, size = $1000, fill = yes;
 }
 
 SEGMENTS {
        ZEROPAGE: load = RAMZ, type = zp, define = yes;
        CODE:   load = ROM0, type = ro;
        RODATA: load = ROM0, type = ro;
-       DISCARD: load = ROM0, type = ro;
-       DISCARDDATA: load = ROM0, type = ro;
+       DISCARD: load = ROM1, type = ro;
+       DISCARDDATA: load = ROM1, type = ro;
        DATA:   load = ROM0, run = RAM1, type = rw, define = yes;
        BSS:    load = RAM1, type = bss, define=yes;
        COMMONDATA: load = RAM0, type= bss;
-       COMMONMEM: load = ROM0, run = RAM0, type = rw, define = yes;
-       STUBS:   load = ROM0, run = RAM0, type = ro;
-       VECTORS: load = ROM0, type = ro, start = $FFFA;
+       COMMONMEM: load = ROM1, run = RAM0, type = rw, define = yes;
+       STUBS:   load = ROM1, run = RAM0, type = ro;
+       VECTORS: load = ROM1, type = ro, start = $FFFA;
 }
 
 FILES {