From 2df0b34b24329fc033de4a7411fbc386bbceba83 Mon Sep 17 00:00:00 2001 From: Nate Lawson Date: Thu, 2 Sep 2004 04:28:05 +0000 Subject: [PATCH] Don't enter the debugger when executing an AML breakpoint instruction unless ACPI_DEBUG is defined. Users don't typically care about errant breakpoint instructions. The HP Pavilion 7915 has this in its PCI0 _INI method for rev 0x6040000 of the RSDT. --- sys/dev/acpica/Osd/OsdDebug.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/acpica/Osd/OsdDebug.c b/sys/dev/acpica/Osd/OsdDebug.c index a7f7153a36b..df818cd6f64 100644 --- a/sys/dev/acpica/Osd/OsdDebug.c +++ b/sys/dev/acpica/Osd/OsdDebug.c @@ -73,8 +73,7 @@ ACPI_STATUS AcpiOsSignal(UINT32 Function, void *Info) { ACPI_SIGNAL_FATAL_INFO *fatal; - char *message; - + switch (Function) { case ACPI_SIGNAL_FATAL: fatal = (ACPI_SIGNAL_FATAL_INFO *)Info; @@ -82,10 +81,11 @@ AcpiOsSignal(UINT32 Function, void *Info) fatal->Type, fatal->Code, fatal->Argument); kdb_enter("AcpiOsSignal"); break; - + case ACPI_SIGNAL_BREAKPOINT: - message = (char *)Info; - kdb_enter(message); +#ifdef ACPI_DEBUG + kdb_enter((char *)Info); +#endif break; default: