From d4985051b35e543cb79519ace40969918d4a094c Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Thu, 1 Oct 2015 21:40:43 +0100 Subject: [PATCH] pcw8256: work around sdcc 3.5 bug --- Kernel/platform-pcw8256/config.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-pcw8256/config.h b/Kernel/platform-pcw8256/config.h index b71d1e31..57f06e0b 100644 --- a/Kernel/platform-pcw8256/config.h +++ b/Kernel/platform-pcw8256/config.h @@ -37,7 +37,7 @@ #define PROGTOP 0xF000 /* Top of program, base of U_DATA */ #define SWAP_SIZE 0x80 /* 64K in blocks (we actually don't need all of it FIXME) */ -#define SWAPBASE 0x0000 /* We swap the lot in one, include the */ +#define SWAPBASE ((uint16_t)0x0000) /* We swap the lot in one, include the */ #define SWAPTOP 0xF400 /* vectors. We have to swap 256 bytes of common as well */ @@ -56,3 +56,5 @@ #define swap_map(x) ((uint8_t *)(x)) /* For now */ + +#define platform_discard() -- 2.34.1