28#ifndef _RTEMS_SCORE_IDT_H
29#define _RTEMS_SCORE_IDT_H
38#define IDT_INTERRUPT_GATE (0b1110)
39#define IDT_PRESENT (0b10000000)
48#define BSP_VECTOR_SPURIOUS 0xFF
50#define BSP_VECTOR_APIC_TIMER 32
52#define BSP_VECTOR_IPI 33
56 uint16_t segment_selector;
58 uint8_t interrupt_stack_table;
59 uint8_t type_and_attributes;
62 uint32_t reserved_zero;
75 "IDT pointer must be exactly 10 bytes"
81 uintptr_t handler, uint8_t types_and_attributes
84uintptr_t amd64_get_handler_from_idt(uint32_t vector);
86void amd64_install_raw_interrupt(
87 uint32_t vector, uintptr_t new_handler, uintptr_t *old_handler
97extern void rtems_irq_prologue_0(
void);
98extern void rtems_irq_prologue_1(
void);
99extern void rtems_irq_prologue_2(
void);
100extern void rtems_irq_prologue_3(
void);
101extern void rtems_irq_prologue_4(
void);
102extern void rtems_irq_prologue_5(
void);
103extern void rtems_irq_prologue_6(
void);
104extern void rtems_irq_prologue_7(
void);
105extern void rtems_irq_prologue_8(
void);
106extern void rtems_irq_prologue_9(
void);
107extern void rtems_irq_prologue_10(
void);
108extern void rtems_irq_prologue_11(
void);
109extern void rtems_irq_prologue_12(
void);
110extern void rtems_irq_prologue_13(
void);
111extern void rtems_irq_prologue_14(
void);
112extern void rtems_irq_prologue_15(
void);
113extern void rtems_irq_prologue_16(
void);
114extern void rtems_irq_prologue_17(
void);
115extern void rtems_irq_prologue_18(
void);
116extern void rtems_irq_prologue_19(
void);
117extern void rtems_irq_prologue_20(
void);
118extern void rtems_irq_prologue_21(
void);
119extern void rtems_irq_prologue_22(
void);
120extern void rtems_irq_prologue_23(
void);
121extern void rtems_irq_prologue_24(
void);
122extern void rtems_irq_prologue_25(
void);
123extern void rtems_irq_prologue_26(
void);
124extern void rtems_irq_prologue_27(
void);
125extern void rtems_irq_prologue_28(
void);
126extern void rtems_irq_prologue_29(
void);
127extern void rtems_irq_prologue_30(
void);
128extern void rtems_irq_prologue_31(
void);
129extern void rtems_irq_prologue_32(
void);
130extern void rtems_irq_prologue_33(
void);
This header file provides basic definitions used by the API and the implementation.
#define RTEMS_STATIC_ASSERT(_cond, _msg)
It is defined if a static analysis run is performed.
Definition: basedefs.h:841
ISR_Vector_number rtems_vector_number
This integer type represents interrupt vector numbers.
Definition: intr.h:102
This header file defines the Interrupt Manager API.
Used for passing and retrieving registers content to/from real mode interrupt call.
Definition: realmode_int.h:43