6502: quick fixes to bring the code somewhere aligned with current
authorAlan Cox <alan@linux.intel.com>
Fri, 11 Nov 2016 15:39:55 +0000 (15:39 +0000)
committerAlan Cox <alan@linux.intel.com>
Fri, 11 Nov 2016 15:39:55 +0000 (15:39 +0000)
Kernel/cpu-6502/rules.mk
Kernel/platform-tgl6502/Makefile
Kernel/platform-tgl6502/config.h
Kernel/platform-tgl6502/ld65.cfg

index 278b433..48d06b5 100644 (file)
@@ -11,6 +11,11 @@ export CROSS_CC_SEG1=--code-name SEG1
 export CROSS_CC_SEG2=--code-name SEG2
 # 6502 we need a real SEG3 to make it fit
 export CROSS_CC_SEG3=--code-name SEG3
+export CROSS_CC_SYS1=--code-name SYS1
+export CROSS_CC_SYS2=--code-name SYS2
+export CROSS_CC_SYS3=--code-name SYS3
+export CROSS_CC_SYS4=--code-name SYS4
+export CROSS_CC_SYS5=--code-name SYS5
 export CROSS_CC_VIDEO=--code-name SEG3
 export CROSS_CC_SEGDISC=--code-name DISCARD --rodata-name DISCARDDATA
 export ASMEXT = .s
index a1c4bb5..8bfafbd 100644 (file)
@@ -14,7 +14,7 @@ JUNK = $(CSRCS:.c=.o) $(CSRCS:.c=.s) $(ASRCS:.s=.o)
 all:   $(OBJS)
 
 $(COBJS): %$(BINEXT): %.c
-       $(CROSS_CC) $(CROSS_CCOPTS) $<
+       $(CROSS_CC) $(CROSS_CCOPTS) $(CROSS_CC_SEG1) $<
 
 $(AOBJS): %$(BINEXT): %.s
        $(CROSS_AS) $(ASOPTS) $< -o $*$(BINEXT)
index 6656352..6148897 100644 (file)
@@ -37,7 +37,7 @@
 #define MAPBASE            0x0000  /* We map from 0 */
 #define PROGBASE    0x2000  /* also data base */
 #define PROGLOAD    0x2000
-#define PROGTOP     0xC000  /* Top of program (for debug for now, can go to 10000) */
+#define PROGTOP     0xC000  /* Top of program (for debug for now, can go to FFF9) */
 
 #define BOOT_TTY 513        /* Set this to default device for stdio, stderr */
 
index 9369be7..95ac622 100644 (file)
@@ -16,10 +16,15 @@ SEGMENTS {
        BSS:    load = RAM1, type = bss, define=yes;
        COMMONDATA: load = RAM0, type= bss;
        COMMONMEM: load = ROM1, run = RAM0, type = rw, define = yes;
-       CODE:   load = ROM0, type = ro, define = yes;
+       CODE: load = ROM1, run = RAM0, type = ro, define = yes;
        SEG1:   load = ROM0, type = ro;
        SEG2:   load = ROM0, type = ro;
        SEG3:   load = ROM0, type = ro;
+       SYS1:   load = ROM0, type = ro;
+       SYS2:   load = ROM0, type = ro;
+       SYS3:   load = ROM0, type = ro;
+       SYS4:   load = ROM0, type = ro;
+       SYS5:   load = ROM0, type = ro;
        STUBS:   load = ROM1, run = RAM0, type = ro, define = yes;
        VECTORS: load = ROM1, type = ro, start = $FFFA;
 }