Author: wmb Date: 2009-05-14 08:19:36 +0200 (Thu, 14 May 2009) New Revision: 1187
Modified: clients/memtest86/ega.h Log: memtest86 - Parameters to EGA_ADR must be parenthesized to prevent operator precedence problems.
Modified: clients/memtest86/ega.h =================================================================== --- clients/memtest86/ega.h 2009-05-13 21:59:04 UTC (rev 1186) +++ clients/memtest86/ega.h 2009-05-14 06:19:36 UTC (rev 1187) @@ -14,7 +14,7 @@ #define SCREEN_ADR 0xb8000 #define SCREEN_END_ADR (SCREEN_ADR + 80*25*2)
-#define EGA_ADR(y, x, offset) *(char *)(SCREEN_ADR + (y * 160) + (x * 2) + offset) +#define EGA_ADR(y, x, offset) *(char *)(SCREEN_ADR + ((y) * 160) + ((x) * 2) + offset)
#define ega_init() do { } while(0) #define set_ega_char(y, x, ch) EGA_ADR(y, x, 0) = (ch)
openfirmware@openfirmware.info