diff options
author | njl <njl@FreeBSD.org> | 2004-09-02 04:28:05 +0000 |
---|---|---|
committer | njl <njl@FreeBSD.org> | 2004-09-02 04:28:05 +0000 |
commit | 4bb443a24da69733cefdb7ed27ddf2590672703a (patch) | |
tree | 047788a21997247e85e54fdbbd1dd35fe7e5f6f6 /sys/dev/acpica | |
parent | 287bbead5a2527abc02754337adf252e180b6409 (diff) | |
download | FreeBSD-src-4bb443a24da69733cefdb7ed27ddf2590672703a.zip FreeBSD-src-4bb443a24da69733cefdb7ed27ddf2590672703a.tar.gz |
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.
Diffstat (limited to 'sys/dev/acpica')
-rw-r--r-- | sys/dev/acpica/Osd/OsdDebug.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/acpica/Osd/OsdDebug.c b/sys/dev/acpica/Osd/OsdDebug.c index a7f7153..df818cd 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: |