Created
August 21, 2014 00:55
-
-
Save cHolzberger/419d214d3c16ae2a8f25 to your computer and use it in GitHub Desktop.
FreeBSD 8.3 Backport of J1900 ACPI Patch see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=187966
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/sys/amd64/acpica/madt.c b/sys/amd64/acpica/madt.c | |
index 90ffd64..dcb7c30 100644 | |
--- a/sys/amd64/acpica/madt.c | |
+++ b/sys/amd64/acpica/madt.c | |
@@ -306,7 +306,9 @@ interrupt_polarity(UINT16 IntiFlags, UINT8 Source) | |
case ACPI_MADT_POLARITY_ACTIVE_LOW: | |
return (INTR_POLARITY_LOW); | |
default: | |
- panic("Bogus Interrupt Polarity"); | |
+ printf("Bogus Interrupt Polarity %x, set to low\n", | |
+ IntiFlags & ACPI_MADT_POLARITY_MASK); | |
+ return (INTR_POLARITY_LOW); | |
} | |
} | |
@@ -325,7 +327,9 @@ interrupt_trigger(UINT16 IntiFlags, UINT8 Source) | |
case ACPI_MADT_TRIGGER_LEVEL: | |
return (INTR_TRIGGER_LEVEL); | |
default: | |
- panic("Bogus Interrupt Trigger Mode"); | |
+ printf("Bogus Interrupt Trigger Mode %x, set to level\n", | |
+ IntiFlags & ACPI_MADT_TRIGGER_MASK); | |
+ return (INTR_TRIGGER_LEVEL); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment