mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 10:47:14 +01:00
e223e8e94b
Before the PCI refactor, PCI initialization/enumeration occurred immediately after the PCI module was loaded, and so by the time we got to IOAPIC initialization, it was already complete. After the refactor, PCI enumeration is deferred until slightly later, and so we would try to initialize IO-APICs without knowing PCI information. This would fail, as read_irq_routing_table needs to have that available. Hopefully fixes #18425, #18393, #18398. Change-Id: I1e4b06367da26eeb10085a1c6322ed39885b632b Reviewed-on: https://review.haiku-os.org/c/haiku/+/6476 Reviewed-by: X512 <danger_mail@list.ru> Reviewed-by: waddlesplash <waddlesplash@gmail.com>
18 lines
367 B
C
18 lines
367 B
C
/*
|
|
* Copyright 2011, Michael Lotz, mmlr@mlotz.ch.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _KERNEL_ARCH_x86_IOAPIC_H
|
|
#define _KERNEL_ARCH_x86_IOAPIC_H
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
struct kernel_args;
|
|
|
|
bool ioapic_is_interrupt_available(int32 gsi);
|
|
|
|
void ioapic_preinit(kernel_args* args);
|
|
void ioapic_init();
|
|
|
|
#endif // _KERNEL_ARCH_x86_IOAPIC_H
|