Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist/tables Add #ifdef so ski emulat...



details:   https://anonhg.NetBSD.org/src/rev/283d3c6ec141
branches:  trunk
changeset: 352570:283d3c6ec141
user:      scole <scole%NetBSD.org@localhost>
date:      Sat Apr 08 18:10:43 2017 +0000

description:
Add #ifdef so ski emulator won't crash.  This change probably wouldn't
hurt other archs, but just apply to ia64 to be safe.

diffstat:

 sys/external/bsd/acpica/dist/tables/tbxfload.c |  11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diffs (21 lines):

diff -r 1e7ec9171706 -r 283d3c6ec141 sys/external/bsd/acpica/dist/tables/tbxfload.c
--- a/sys/external/bsd/acpica/dist/tables/tbxfload.c    Sat Apr 08 18:08:33 2017 +0000
+++ b/sys/external/bsd/acpica/dist/tables/tbxfload.c    Sat Apr 08 18:10:43 2017 +0000
@@ -163,6 +163,17 @@
 
     (void) AcpiUtAcquireMutex (ACPI_MTX_TABLES);
 
+#ifdef __ia64__
+    /*
+     * For ia64 ski emulator
+     */
+    if (AcpiGbl_DsdtIndex == ACPI_INVALID_TABLE_INDEX)
+    {
+        Status = AE_NO_ACPI_TABLES;
+        goto UnlockAndExit;
+    }
+#endif
+    
     /*
      * Load the namespace. The DSDT is required, but any SSDT and
      * PSDT tables are optional. Verify the DSDT.



Home | Main Index | Thread Index | Old Index