diff options
author | aystarik <aystarik> | 2005-06-29 18:59:40 +0000 |
---|---|---|
committer | aystarik <aystarik> | 2005-06-29 18:59:40 +0000 |
commit | b9a943fed4929a6afd5d5c89f3b18e5c9e9ce476 (patch) | |
tree | 9c5dd25aa20647c0840296ec69abc64645a727c9 /source/components/tables/tbxfroot.c | |
parent | aa2b491a6035ea474522b72105c52c4a9807134d (diff) | |
download | acpica-b9a943fed4929a6afd5d5c89f3b18e5c9e9ce476.tar.gz |
Added pointer/integer conversion macros to cleanup IA64 generation
date 2001.12.12.17.25.00; author rmoore1; state Exp;
Diffstat (limited to 'source/components/tables/tbxfroot.c')
-rw-r--r-- | source/components/tables/tbxfroot.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/components/tables/tbxfroot.c b/source/components/tables/tbxfroot.c index 11c439132..8965e3e0d 100644 --- a/source/components/tables/tbxfroot.c +++ b/source/components/tables/tbxfroot.c @@ -1,7 +1,7 @@ /****************************************************************************** * * Module Name: tbxfroot - Find the root ACPI table (RSDT) - * $Revision: 1.51 $ + * $Revision: 1.53 $ * *****************************************************************************/ @@ -319,26 +319,26 @@ AcpiTbFindRsdp ( /* * 1) Search EBDA (low memory) paragraphs */ - MemRover = AcpiTbScanMemoryForRsdp ((UINT8 *) LO_RSDP_WINDOW_BASE, + MemRover = AcpiTbScanMemoryForRsdp (ACPI_PHYSADDR_TO_PTR (LO_RSDP_WINDOW_BASE), LO_RSDP_WINDOW_SIZE); if (MemRover) { /* Found it, return the physical address */ - TableInfo->PhysicalAddress = (ACPI_TBLPTR) MemRover; + TableInfo->PhysicalAddress = ACPI_TO_INTEGER (MemRover); return_ACPI_STATUS (AE_OK); } /* * 2) Search upper memory: 16-byte boundaries in E0000h-F0000h */ - MemRover = AcpiTbScanMemoryForRsdp ((UINT8 *) HI_RSDP_WINDOW_BASE, + MemRover = AcpiTbScanMemoryForRsdp (ACPI_PHYSADDR_TO_PTR (HI_RSDP_WINDOW_BASE), HI_RSDP_WINDOW_SIZE); if (MemRover) { /* Found it, return the physical address */ - TableInfo->PhysicalAddress = (ACPI_TBLPTR) MemRover; + TableInfo->PhysicalAddress = ACPI_TO_INTEGER (MemRover); return_ACPI_STATUS (AE_OK); } } @@ -432,7 +432,7 @@ AcpiGetFirmwareTable ( } else { - AcpiGbl_RSDP = (void *) (NATIVE_UINT) PhysicalAddress; + AcpiGbl_RSDP = ACPI_PHYSADDR_TO_PTR (PhysicalAddress); } /* @@ -457,7 +457,7 @@ AcpiGetFirmwareTable ( ACPI_DEBUG_PRINT ((ACPI_DB_INFO, - "RSDP located at %p, RSDT physical=%8.8lX%8.8lX \n", + "RSDP located at %p, RSDT physical=%8.8X%8.8X \n", AcpiGbl_RSDP, HIDWORD(AcpiGbl_RSDP->RsdtPhysicalAddress), LODWORD(AcpiGbl_RSDP->RsdtPhysicalAddress))); |