don't optimize reading/writing from/to vga memory away in optimized
builds. this fixes bug #490
Modified: trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c
_____
Modified: trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c
--- trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c
2005-01-27 00:21:34 UTC (rev 13329)
+++ trunk/reactos/drivers/video/displays/vga/vgavideo/vgavideo.c
2005-01-27 00:29:12 UTC (rev 13330)
@@ -18,8 +18,8 @@
static int byteCounter;
static unsigned char rightMask;
-#define READ_REGISTER_UCHAR(p) (*((PUCHAR)(p)))
-#define WRITE_REGISTER_UCHAR(p,c) (*((PCHAR)(p))) = (c)
+#define READ_REGISTER_UCHAR(p) (*((volatile UCHAR *)(p)))
+#define WRITE_REGISTER_UCHAR(p,c) (*((volatile CHAR *)(p))) = (c)
INT abs(INT nm)
{
Show replies by date