From 8bd3137f803d4f0a5c433fc97ae517319632eb86 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Fri, 6 Aug 2021 22:39:42 +0200 Subject: [PATCH] gdt.asm --- src/pm/gdt.asm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pm/gdt.asm b/src/pm/gdt.asm index 8ceb80b..c092d3e 100644 --- a/src/pm/gdt.asm +++ b/src/pm/gdt.asm @@ -34,4 +34,10 @@ gdt_end: ; Mark the end so we can get the delta-memory (size of GDT) ; GDT descriptor gdt_descriptor: - dw gdt_end - gdt_start - 1 ; + dw gdt_end - gdt_start - 1 ; Size of GDT is always -1 of actual size (WHY?!?!?!?!??!) + dd gdt_start ; Pointer to the GDT + + +; Lazy constants +GDT_CODE_SEG equ gdt_code - gdt_start +GDT_DATA_SEG equ gdt_data - gdt_start