stos/amd64: cpu: Add exception handling groundwork
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -13,4 +13,21 @@
|
||||
#define IDT_TRAP_GATE 0x8F
|
||||
#define IDT_USER_GATE 0xEE
|
||||
|
||||
#ifndef __ASSEMBLER__
|
||||
/*
|
||||
* Set an IDT entry
|
||||
*
|
||||
* @Vector: Interrupt vector to set
|
||||
* @IsrBase: ISR base to set
|
||||
* @Type: Gate type
|
||||
* @Ist: Interrupt stack table index
|
||||
*/
|
||||
VOID MdIdtSetEntry(UCHAR Vector, UPTR IsrBase, UCHAR Type, UCHAR Ist);
|
||||
|
||||
/*
|
||||
* Load the IDT
|
||||
*/
|
||||
VOID MdIdtLoad(VOID);
|
||||
|
||||
#endif /* !__ASSEMBLER__ */
|
||||
#endif /* !_MACHINE_IDT_H_ */
|
||||
|
||||
Reference in New Issue
Block a user