hal: fix some ULONG/ULONG_PTR issues
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 27 Jan 2009 21:35:00 +0000 (21:35 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Tue, 27 Jan 2009 21:35:00 +0000 (21:35 +0000)
svn path=/branches/ros-amd64-bringup/; revision=39151

reactos/hal/halx86/mp/apic.c

index 71b9a0b..88e3c5b 100644 (file)
@@ -934,18 +934,18 @@ VOID HaliInitBSP(VOID)
    CommonBase = (PULONG)COMMON_AREA;
  
    /* Copy bootstrap code to common area */
-   memcpy((PVOID)((ULONG)CommonBase + PAGE_SIZE),
+   memcpy((PVOID)((ULONG_PTR)CommonBase + PAGE_SIZE),
          &APstart,
-         (ULONG)&APend - (ULONG)&APstart + 1);
+         (ULONG_PTR)&APend - (ULONG_PTR)&APstart + 1);
 
    /* Set shutdown code */
    CMOS_WRITE(0xF, 0xA);
 
    /* Set warm reset vector */
-   ps = (PUSHORT)((ULONG)BIOSBase + 0x467);
+   ps = (PUSHORT)((ULONG_PTR)BIOSBase + 0x467);
    *ps = (COMMON_AREA + PAGE_SIZE) & 0xF;
  
-   ps = (PUSHORT)((ULONG)BIOSBase + 0x469);
+   ps = (PUSHORT)((ULONG_PTR)BIOSBase + 0x469);
    *ps = (COMMON_AREA + PAGE_SIZE) >> 4;
 #endif