[ros-diffs] [tkreuzer] 34650: fix READ_PORT_xxx macros

tkreuzer at svn.reactos.org tkreuzer at svn.reactos.org
Mon Jul 21 23:53:38 CEST 2008


Author: tkreuzer
Date: Mon Jul 21 16:53:38 2008
New Revision: 34650

URL: http://svn.reactos.org/svn/reactos?rev=34650&view=rev
Log:
fix READ_PORT_xxx macros

Modified:
    trunk/reactos/include/ddk/ioaccess.h

Modified: trunk/reactos/include/ddk/ioaccess.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/ioaccess.h?rev=34650&r1=34649&r2=34650&view=diff
==============================================================================
--- trunk/reactos/include/ddk/ioaccess.h [iso-8859-1] (original)
+++ trunk/reactos/include/ddk/ioaccess.h [iso-8859-1] Mon Jul 21 16:53:38 2008
@@ -38,9 +38,9 @@
 #define WRITE_REGISTER_UCHAR(r, v) (*(volatile UCHAR *)(r) = (v))
 #define WRITE_REGISTER_USHORT(r, v) (*(volatile USHORT *)(r) = (v))
 #define WRITE_REGISTER_ULONG(r, v) (*(volatile ULONG *)(r) = (v))
-#define READ_PORT_UCHAR(p) (UCHAR)(__inbyte H2I(p))
-#define READ_PORT_USHORT(p) (USHORT)(__inword H2I(p))
-#define READ_PORT_ULONG(p) (ULONG)(__indword H2I(p))
+#define READ_PORT_UCHAR(p) (UCHAR)(__inbyte (H2I(p)))
+#define READ_PORT_USHORT(p) (USHORT)(__inword (H2I(p)))
+#define READ_PORT_ULONG(p) (ULONG)(__indword (H2I(p)))
 #define WRITE_PORT_UCHAR(p, v) __outbyte (H2I(p), (v))
 #define WRITE_PORT_USHORT(p, v) __outword (H2I(p), (v))
 #define WRITE_PORT_ULONG(p, v) __outdword (H2I(p), (v))



More information about the Ros-diffs mailing list