From 269f3a2b245af7bbed90111d4e9838735a48a53f Mon Sep 17 00:00:00 2001 From: Dmitry Borisov Date: Sun, 25 Jul 2021 00:49:51 +0600 Subject: [PATCH] [HALXBOX] Do not claim interrupt resources for the KD COM port The actual COM port lacks SERIRQ, IRQ 4 is hardwired to the NIC CORE-15872 CORE-16216 --- hal/halx86/generic/usage.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hal/halx86/generic/usage.c b/hal/halx86/generic/usage.c index 0652e817a95..14af02a37fc 100644 --- a/hal/halx86/generic/usage.c +++ b/hal/halx86/generic/usage.c @@ -287,6 +287,13 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName, HalpComIoSpace.Next = HalpAddressUsageList; HalpAddressUsageList = &HalpComIoSpace; +#if defined(SARCH_XBOX) + /* + * Do not claim interrupt resources for the KD COM port. + * The actual COM port lacks SERIRQ, IRQ 4 is hardwired to the NIC. + */ + UNREFERENCED_PARAMETER(Port); +#else /* Use the debug port table if we have one */ HalpGetInfoFromACPI = HalpGetDebugPortTable(); @@ -310,6 +317,7 @@ HalpReportResourceUsage(IN PUNICODE_STRING HalName, } } } +#endif } /* On non-ACPI systems, we need to build an address map */