From 1b114e964b0ecf9e9b974486d9181ac39604f818 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 25 Jan 2015 23:19:58 +0000 Subject: [PATCH] cpu-z80/cpu.h: add a warning about __COMMONMEM Its an exciting new way to blow yourself up... --- Kernel/cpu-z80/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kernel/cpu-z80/cpu.h b/Kernel/cpu-z80/cpu.h index 505911a6..b67376f4 100644 --- a/Kernel/cpu-z80/cpu.h +++ b/Kernel/cpu-z80/cpu.h @@ -67,5 +67,7 @@ typedef union { /* this structure is endian dependent */ #define le32_to_cpu(x) (x) #define DISCARDABLE static void DISCARDSEG(void) __naked { __asm .area _DISCARD __endasm; } +/* Do not use COMMON_MEMORY except for __asm code blocks. The SDCC helpers are not + loaded into common */ #define COMMON_MEMORY static void COMMONSEG(void) __naked { __asm .area _COMMONMEM __endasm; } #endif -- 2.34.1