mirror of
https://review.haiku-os.org/haiku
synced 2025-01-27 00:34:50 +01:00
a56cbb2afb
mark the ISA interrupts as unusable and then use ioapic_is_interrupt_available to determine if that vector is possibly taken by an IO-APIC. If IO-APICs are not used, this will simply always return false, leaving all vectors free for MSI use. * The msi_init() now has to be done after a potential IO-APIC init, so it is now done after ioapic_init() instead of inside apic_init(). * Add apic_disable_local_ints() to clear the local ints on the local APIC once we are in APIC mode (i.e. the IO-APIC is set up and we don't need the external routing anymore). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41445 a95241bf-73f2-0310-859d-f6bbb57e9c96
18 lines
380 B
C
18 lines
380 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_map(kernel_args* args);
|
|
void ioapic_init(kernel_args* args);
|
|
|
|
#endif // _KERNEL_ARCH_x86_IOAPIC_H
|