fixup "sel4: add MSI support for x86"

Issue #5423
This commit is contained in:
Alexander Boettcher
2025-01-24 16:10:09 +01:00
committed by Christian Helmuth
parent 8e0fe39248
commit ca7bcc2d80

View File

@@ -99,8 +99,9 @@ Irq_object::Irq_object(unsigned irq)
Irq_session_component::Irq_session_component(Range_allocator &irq_alloc,
const char *args)
:
_irq_number(Irq_args(args).irq_number() +
Irq_args(args).type() != TYPE_LEGACY ? Irq_object::MSI_OFFSET : 0),
_irq_number(unsigned(Irq_args(args).type() == TYPE_LEGACY ?
Irq_args(args).irq_number() :
Irq_args(args).irq_number() + Irq_object::MSI_OFFSET)),
_irq_alloc(irq_alloc),
_irq_object(_irq_number)
{