vbos/init/descriptor.S
Michael Shaw ca5351b847 Added support for basic x86 features
Includes 'gdt', 'idt' and a serial driver
2023-02-27 18:36:15 -05:00

39 lines
378 B
ArmAsm

#define __ASM__
#include <kernel/gdt.h>
#include <kernel/idt.h>
/*
* Data section
*/
.data
.global __gdtr
__gdtr:
.word 0
.quad 0
.global __gdt
__gdt:
.skip GDT_SIZE
.global __idtr
__idtr:
.word 0
.quad 0
.global __idt
__idt:
.skip IDT_SIZE
/*
* Code Section
*/
.text
.global gdt_load
gdt_load:
lgdt (__gdtr)
ret
.global idt_load
idt_load:
lidt (__idtr)
ret