From fb545753bec73624fd48cfb27443de36899121f5 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Wed, 27 Aug 2008 14:16:04 +0000 Subject: [PATCH] enhance macros svn path=/branches/ros-amd64-bringup/; revision=35696 --- reactos/boot/freeldr/freeldr/include/arch/amd64/amd64.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/reactos/boot/freeldr/freeldr/include/arch/amd64/amd64.h b/reactos/boot/freeldr/freeldr/include/arch/amd64/amd64.h index 05f483ad396..4e4fb7000b4 100644 --- a/reactos/boot/freeldr/freeldr/include/arch/amd64/amd64.h +++ b/reactos/boot/freeldr/freeldr/include/arch/amd64/amd64.h @@ -34,10 +34,10 @@ #define PtrToPfn(p) \ ((((ULONGLONG)p) >> PAGE_SHIFT) & 0xfffffffULL) -#define VAtoPXI(va) (((va) >> PXI_SHIFT) & 0x1FF) -#define VAtoPPI(va) (((va) >> PPI_SHIFT) & 0x1FF) -#define VAtoPDI(va) (((va) >> PDI_SHIFT) & 0x1FF) -#define VAtoPTI(va) (((va) >> PTI_SHIFT) & 0x1FF) +#define VAtoPXI(va) ((((ULONG64)va) >> PXI_SHIFT) & 0x1FF) +#define VAtoPPI(va) ((((ULONG64)va) >> PPI_SHIFT) & 0x1FF) +#define VAtoPDI(va) ((((ULONG64)va) >> PDI_SHIFT) & 0x1FF) +#define VAtoPTI(va) ((((ULONG64)va) >> PTI_SHIFT) & 0x1FF) #define HYPERSPACE_BASE 0xfffff70000000000ULL #define HAL_BASE 0xffffffff80000000ULL