2009-11-16 22:41:44 +01:00
|
|
|
#ifndef __APIC_ASM_H__
|
|
|
|
#define __APIC_ASM_H__
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
2010-04-02 00:22:33 +02:00
|
|
|
#include "kernel/kernel.h"
|
2009-11-16 22:41:44 +01:00
|
|
|
|
2012-03-24 16:16:34 +01:00
|
|
|
void apic_hwint0(void);
|
|
|
|
void apic_hwint1(void);
|
|
|
|
void apic_hwint2(void);
|
|
|
|
void apic_hwint3(void);
|
|
|
|
void apic_hwint4(void);
|
|
|
|
void apic_hwint5(void);
|
|
|
|
void apic_hwint6(void);
|
|
|
|
void apic_hwint7(void);
|
|
|
|
void apic_hwint8(void);
|
|
|
|
void apic_hwint9(void);
|
|
|
|
void apic_hwint10(void);
|
|
|
|
void apic_hwint11(void);
|
|
|
|
void apic_hwint12(void);
|
|
|
|
void apic_hwint13(void);
|
|
|
|
void apic_hwint14(void);
|
|
|
|
void apic_hwint15(void);
|
|
|
|
void apic_hwint16(void);
|
|
|
|
void apic_hwint17(void);
|
|
|
|
void apic_hwint18(void);
|
|
|
|
void apic_hwint19(void);
|
|
|
|
void apic_hwint20(void);
|
|
|
|
void apic_hwint21(void);
|
|
|
|
void apic_hwint22(void);
|
|
|
|
void apic_hwint23(void);
|
|
|
|
void apic_hwint24(void);
|
|
|
|
void apic_hwint25(void);
|
|
|
|
void apic_hwint26(void);
|
|
|
|
void apic_hwint27(void);
|
|
|
|
void apic_hwint28(void);
|
|
|
|
void apic_hwint29(void);
|
|
|
|
void apic_hwint30(void);
|
|
|
|
void apic_hwint31(void);
|
|
|
|
void apic_hwint32(void);
|
|
|
|
void apic_hwint33(void);
|
|
|
|
void apic_hwint34(void);
|
|
|
|
void apic_hwint35(void);
|
|
|
|
void apic_hwint36(void);
|
|
|
|
void apic_hwint37(void);
|
|
|
|
void apic_hwint38(void);
|
|
|
|
void apic_hwint39(void);
|
|
|
|
void apic_hwint40(void);
|
|
|
|
void apic_hwint41(void);
|
|
|
|
void apic_hwint42(void);
|
|
|
|
void apic_hwint43(void);
|
|
|
|
void apic_hwint44(void);
|
|
|
|
void apic_hwint45(void);
|
|
|
|
void apic_hwint46(void);
|
|
|
|
void apic_hwint47(void);
|
|
|
|
void apic_hwint48(void);
|
|
|
|
void apic_hwint49(void);
|
|
|
|
void apic_hwint50(void);
|
|
|
|
void apic_hwint51(void);
|
|
|
|
void apic_hwint52(void);
|
|
|
|
void apic_hwint53(void);
|
|
|
|
void apic_hwint54(void);
|
|
|
|
void apic_hwint55(void);
|
|
|
|
void apic_hwint56(void);
|
|
|
|
void apic_hwint57(void);
|
|
|
|
void apic_hwint58(void);
|
|
|
|
void apic_hwint59(void);
|
|
|
|
void apic_hwint60(void);
|
|
|
|
void apic_hwint61(void);
|
|
|
|
void apic_hwint62(void);
|
|
|
|
void apic_hwint63(void);
|
2009-11-16 22:41:44 +01:00
|
|
|
|
|
|
|
/* The local APIC timer tick handlers */
|
2012-03-24 16:16:34 +01:00
|
|
|
void lapic_timer_int_handler(void);
|
|
|
|
void apic_spurios_intr(void);
|
|
|
|
void apic_error_intr(void);
|
2009-11-16 22:41:44 +01:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2011-07-31 16:20:34 +02:00
|
|
|
#define APIC_DEBUG
|
2009-11-16 22:41:44 +01:00
|
|
|
|
2011-07-31 16:20:34 +02:00
|
|
|
#ifdef APIC_DEBUG
|
2009-11-16 22:41:44 +01:00
|
|
|
|
|
|
|
#define LAPIC_INTR_DUMMY_HANDLER_SIZE 32
|
|
|
|
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
EXTERN char lapic_intr_dummy_handles_start;
|
|
|
|
EXTERN char lapic_intr_dummy_handles_end;
|
|
|
|
#endif
|
|
|
|
|
2011-07-31 16:20:34 +02:00
|
|
|
#endif /* APIC_DEBUG */
|
2009-11-16 22:41:44 +01:00
|
|
|
|
|
|
|
#endif /* __APIC_ASM_H__ */
|