Add an interrupt descriptor table.
Set up a very basic handler for divide by zero and general protection faults.
This commit is contained in:
parent
3e1a1f7485
commit
9fc1aa15ef
8 changed files with 132 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ void InitGdt() {
|
|||
|
||||
GdtPointer gdtp{
|
||||
.size = sizeof(gGdtSegments) - 1,
|
||||
.base = reinterpret_cast<uint64_t>(&gGdtSegments),
|
||||
.base = reinterpret_cast<uint64_t>(gGdtSegments),
|
||||
};
|
||||
|
||||
asm volatile("lgdt %0" ::"m"(gdtp));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue