From c18781e37e6bfe153e7c0f2bc8b04df0aecf151d Mon Sep 17 00:00:00 2001 From: Alexey Gavrilov Date: Sat, 4 Nov 2023 10:09:44 +0700 Subject: Support for GDT has been written + add makefile debug mode --- arch/x86/gdt/GoToGdtMemSeg.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 arch/x86/gdt/GoToGdtMemSeg.s (limited to 'arch/x86/gdt/GoToGdtMemSeg.s') diff --git a/arch/x86/gdt/GoToGdtMemSeg.s b/arch/x86/gdt/GoToGdtMemSeg.s new file mode 100644 index 0000000..2b5dd62 --- /dev/null +++ b/arch/x86/gdt/GoToGdtMemSeg.s @@ -0,0 +1,13 @@ +global GOTOGDTMEMSEG +GOTOGDTMEMSEG: + lgdt [esp + 4] + jmp 0x08:.reloadCS +.reloadCS: + mov ax, 0x10 + mov ds, ax + mov es, ax + mov fs, ax + mov gs, ax + mov ss, ax + ret +.end: -- cgit v1.2.3