[ros-diffs] [weiden] 13330: don't optimize reading/writing from/to vga memory away in optimized builds. this fixes bug #490

weiden at svn.reactos.com weiden at svn.reactos.com
Thu Jan 27 01:29:14 CET 2005


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)
 {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050127/1619b64c/attachment.html


More information about the Ros-diffs mailing list