Fix hal build
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 10 Dec 2008 01:26:44 +0000 (01:26 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 10 Dec 2008 01:26:44 +0000 (01:26 +0000)
svn path=/branches/ros-amd64-bringup/; revision=37991

reactos/hal/halx86/include/apic.h

index daeabf7..1625e9d 100644 (file)
@@ -186,7 +186,7 @@ static __inline ULONG _APICRead(ULONG Offset)
 {
     PULONG p;
 
-    p = (PULONG)((ULONG)APICBase + Offset);
+    p = (PULONG)((ULONG_PTR)APICBase + Offset);
     return *p;
 }
 
@@ -196,7 +196,7 @@ static __inline VOID APICWrite(ULONG Offset,
 {
     PULONG p;
 
-    p = (PULONG)((ULONG)APICBase + Offset);
+    p = (PULONG)((ULONG_PTR)APICBase + Offset);
 
     *p = Value;
 }
@@ -210,7 +210,7 @@ static __inline VOID APICWrite(ULONG Offset,
     lastregw[CPU] = Offset;
     lastvalw[CPU] = Value;
 
-    p = (PULONG)((ULONG)APICBase + Offset);
+    p = (PULONG)((ULONG_PTR)APICBase + Offset);
 
     *p = Value;
 }
@@ -221,7 +221,7 @@ static __inline ULONG APICRead(ULONG Offset)
 {
     PULONG p;
 
-    p = (PULONG)((ULONG)APICBase + Offset);
+    p = (PULONG)((ULONG_PTR)APICBase + Offset);
     return *p;
 }
 #else
@@ -233,7 +233,7 @@ static __inline ULONG APICRead(ULONG Offset)
     lastregr[CPU] = Offset;
     lastvalr[CPU] = 0;
 
-    p = (PULONG)((ULONG)APICBase + Offset);
+    p = (PULONG)((ULONG_PTR)APICBase + Offset);
 
     lastvalr[CPU] = *p;
     return lastvalr[CPU];