x86: add GDT and IDT
Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
parent
f10e3f31d7
commit
e5b55a6ba5
25 changed files with 1211 additions and 13 deletions
|
|
@ -4,7 +4,12 @@
|
|||
|
||||
#include <kernel/types.h>
|
||||
|
||||
void cr3_write();
|
||||
void cr2_write(u64 cr2);
|
||||
u64 cr2_read();
|
||||
void cr3_write(u64 cr3);
|
||||
u64 cr3_read();
|
||||
void lidt();
|
||||
void lgdt();
|
||||
void ltr();
|
||||
|
||||
#endif /* _REG_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue