summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/acpica/OsdEnvironment.c15
-rw-r--r--sys/i386/acpica/OsdEnvironment.c15
2 files changed, 18 insertions, 12 deletions
diff --git a/sys/amd64/acpica/OsdEnvironment.c b/sys/amd64/acpica/OsdEnvironment.c
index 8b8e663..6ba605a 100644
--- a/sys/amd64/acpica/OsdEnvironment.c
+++ b/sys/amd64/acpica/OsdEnvironment.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2000 Michael Smith
+ * Copyright (c) 2000,2001 Michael Smith
* Copyright (c) 2000 BSDi
* All rights reserved.
*
@@ -33,19 +33,17 @@
#include "acpi.h"
-#ifdef __i386__
#include <machine/pc/bios.h>
-#endif
ACPI_STATUS
AcpiOsInitialize(void)
{
-#ifdef __i386__
/*
- * Prevent the PnP BIOS code from interfering with our own scan of ISA devices.
+ * Prevent the PnP BIOS code from interfering with our own scan of
+ * ISA devices.
*/
PnPBIOStable = NULL;
-#endif
+
return(NULL);
}
@@ -60,5 +58,10 @@ AcpiOsGetRootPointer(
UINT32 Flags,
ACPI_PHYSICAL_ADDRESS *RsdpPhysicalAddress)
{
+ /*
+ * The loader passes the physical address at which it found the
+ * RSDP in a hint. We could recover this rather than searching
+ * manually here.
+ */
return(AcpiFindRootPointer(Flags, RsdpPhysicalAddress));
}
diff --git a/sys/i386/acpica/OsdEnvironment.c b/sys/i386/acpica/OsdEnvironment.c
index 8b8e663..6ba605a 100644
--- a/sys/i386/acpica/OsdEnvironment.c
+++ b/sys/i386/acpica/OsdEnvironment.c
@@ -1,5 +1,5 @@
/*-
- * Copyright (c) 2000 Michael Smith
+ * Copyright (c) 2000,2001 Michael Smith
* Copyright (c) 2000 BSDi
* All rights reserved.
*
@@ -33,19 +33,17 @@
#include "acpi.h"
-#ifdef __i386__
#include <machine/pc/bios.h>
-#endif
ACPI_STATUS
AcpiOsInitialize(void)
{
-#ifdef __i386__
/*
- * Prevent the PnP BIOS code from interfering with our own scan of ISA devices.
+ * Prevent the PnP BIOS code from interfering with our own scan of
+ * ISA devices.
*/
PnPBIOStable = NULL;
-#endif
+
return(NULL);
}
@@ -60,5 +58,10 @@ AcpiOsGetRootPointer(
UINT32 Flags,
ACPI_PHYSICAL_ADDRESS *RsdpPhysicalAddress)
{
+ /*
+ * The loader passes the physical address at which it found the
+ * RSDP in a hint. We could recover this rather than searching
+ * manually here.
+ */
return(AcpiFindRootPointer(Flags, RsdpPhysicalAddress));
}
OpenPOWER on IntegriCloud