Print the acpi_error_string() text and panic, instead of printing the
error and spinning forever.
---
 i386/i386at/model_dep.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/i386/i386at/model_dep.c b/i386/i386at/model_dep.c
index eea3349..1d4a983 100644
--- a/i386/i386at/model_dep.c
+++ b/i386/i386at/model_dep.c
@@ -166,8 +166,10 @@ void machine_init(void)
 
        err = acpi_apic_init();
        if (err) {
-               printf("acpi_apic_init failed with %d\n", err);
-               for (;;);
+               printf("acpi_apic_init failed with %d: %s\n",
+                      err, acpi_error_string(err));
+               panic("GNU Mach: APIC initialization failed (%d: %s)",
+                     err, acpi_error_string(err));
        }
 #endif
 #if (NCPUS > 1)

Reply via email to