amd64: add support for IPIs
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
dda38aa265
commit
a5c0597830
3 changed files with 30 additions and 2 deletions
|
|
@ -12,14 +12,13 @@
|
|||
#define GDT_SEGMENT_DATA_RING0 0x30
|
||||
#define GDT_SEGMENT_CODE_RING3 0x38
|
||||
#define GDT_SEGMENT_DATA_RING3 0x40
|
||||
#define GDT_SEGMENT_TSS 0x48
|
||||
#define GDT_SEGMENT_TSS 0x48
|
||||
|
||||
#define GATE_INTR 0x8E
|
||||
#define GATE_TRAP 0x8F
|
||||
|
||||
#define GATE_INTR_DPL3 0xEE
|
||||
|
||||
|
||||
#include <kernel/common.h>
|
||||
|
||||
struct cpu_local;
|
||||
|
|
@ -90,6 +89,7 @@ extern struct irq_desc __idt[64];
|
|||
|
||||
void gdt_init();
|
||||
void idt_init();
|
||||
void idt_insert(uint16_t gate, uint8_t type, uint8_t ist, uint16_t segment, void *func);
|
||||
void tss_init(int cpu_id, struct cpu_local *local);
|
||||
|
||||
#endif /* _DESCRIPTOR_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue