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
|
|
@ -1,4 +1,6 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#include "descriptor.h"
|
||||
|
||||
void yield()
|
||||
{
|
||||
for (;;) {
|
||||
|
|
@ -10,3 +12,9 @@ void _panic()
|
|||
{
|
||||
yield();
|
||||
}
|
||||
|
||||
void arch_init()
|
||||
{
|
||||
gdt_init();
|
||||
idt_init();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue