x86: add GDT and IDT

Signed-off-by: Michael Shaw <spencershawiscool@gmail.com>
This commit is contained in:
Michael Shaw 2026-04-13 04:23:14 -04:00
commit e5b55a6ba5
25 changed files with 1211 additions and 13 deletions

View file

@ -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();
}