This website requires JavaScript.
Explore
Help
Sign In
drew
/
acadia
Watch
1
Star
0
Fork
You've already forked acadia
0
Code
Issues
Pull Requests
Packages
Projects
Releases
1
Wiki
Activity
259c64ef2a
acadia
/
zion
/
common
/
gdt.h
8 lines
81 B
C
Raw
Normal View
History
Unescape
Escape
Load our own GDT. Replace the GDT from limine with our own.
2023-05-17 21:41:08 -07:00
#
pragma once
Jump to user mode. This instantly creates a page fault as we always map pages with ring 0 permissions.
2023-05-29 12:44:26 -07:00
#
include
<stdint.h>
Load our own GDT. Replace the GDT from limine with our own.
2023-05-17 21:41:08 -07:00
void
InitGdt
(
)
;
Jump to user mode. This instantly creates a page fault as we always map pages with ring 0 permissions.
2023-05-29 12:44:26 -07:00
void
SetRsp0
(
uint64_t
rsp0
)
;