summaryrefslogtreecommitdiffstats
path: root/sys/amd64/acpica
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-05-31 06:47:05 +0000
committerpeter <peter@FreeBSD.org>2003-05-31 06:47:05 +0000
commit776ff76012e24cdf2b89b4f5104d9cf7c1b7de33 (patch)
treedc24bca9e633ed39a3c953f09a70ebf23a065e5a /sys/amd64/acpica
parent58b7016a23eec75221f165ee0a9efbd94010b4d4 (diff)
downloadFreeBSD-src-776ff76012e24cdf2b89b4f5104d9cf7c1b7de33.zip
FreeBSD-src-776ff76012e24cdf2b89b4f5104d9cf7c1b7de33.tar.gz
Port acpica to amd64.
Approved by: re (amd64/* blanket)
Diffstat (limited to 'sys/amd64/acpica')
-rw-r--r--sys/amd64/acpica/OsdEnvironment.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/amd64/acpica/OsdEnvironment.c b/sys/amd64/acpica/OsdEnvironment.c
index cd7fd64..22b19c8 100644
--- a/sys/amd64/acpica/OsdEnvironment.c
+++ b/sys/amd64/acpica/OsdEnvironment.c
@@ -36,9 +36,9 @@
#include "acpi.h"
-u_long i386_acpi_root;
+u_long amd64_acpi_root;
-SYSCTL_ULONG(_machdep, OID_AUTO, acpi_root, CTLFLAG_RD, &i386_acpi_root, 0,
+SYSCTL_ULONG(_machdep, OID_AUTO, acpi_root, CTLFLAG_RD, &amd64_acpi_root, 0,
"The physical address of the RSDP");
ACPI_STATUS
@@ -59,7 +59,7 @@ AcpiOsGetRootPointer(UINT32 Flags, ACPI_POINTER *RsdpPhysicalAddress)
ACPI_POINTER ptr;
ACPI_STATUS status;
- if (i386_acpi_root == 0) {
+ if (amd64_acpi_root == 0) {
/*
* The loader passes the physical address at which it found the
* RSDP in a hint. We could recover this rather than searching
@@ -67,11 +67,11 @@ AcpiOsGetRootPointer(UINT32 Flags, ACPI_POINTER *RsdpPhysicalAddress)
*/
status = AcpiFindRootPointer(Flags, &ptr);
if (status == AE_OK)
- i386_acpi_root = ptr.Pointer.Physical;
+ amd64_acpi_root = ptr.Pointer.Physical;
} else
status = AE_OK;
RsdpPhysicalAddress->PointerType = ACPI_PHYSICAL_POINTER;
- RsdpPhysicalAddress->Pointer.Physical = i386_acpi_root;
+ RsdpPhysicalAddress->Pointer.Physical = amd64_acpi_root;
return (status);
}
OpenPOWER on IntegriCloud