New COMMON_MEMORY macro to put code into COMMONMEM segment
authorWill Sowerbutts <will@sowerbutts.com>
Sun, 25 Jan 2015 21:52:34 +0000 (21:52 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Sun, 25 Jan 2015 21:52:34 +0000 (21:52 +0000)
Kernel/cpu-z80/cpu.h

index c2646ca..505911a 100644 (file)
@@ -66,5 +66,6 @@ typedef union {            /* this structure is endian dependent */
 #define cpu_to_le32(x) (x)
 #define le32_to_cpu(x) (x)
 
-#define DISCARDABLE    static void DISCARDSEG(void) __naked { __asm .area _DISCARD __endasm; }
+#define DISCARDABLE     static void DISCARDSEG(void) __naked { __asm .area _DISCARD __endasm; }
+#define COMMON_MEMORY   static void COMMONSEG(void)  __naked { __asm .area _COMMONMEM __endasm; }
 #endif