summaryrefslogtreecommitdiffhomepage
path: root/src/loader/ent.asm
diff options
context:
space:
mode:
authorMarvin Borner2021-07-10 22:45:33 +0200
committerMarvin Borner2021-07-10 22:45:33 +0200
commit91f534979f4790d5cfc0514eb110f3b1f4fb219b (patch)
tree896617b4f345f263271f4d939e49b3d28729ea04 /src/loader/ent.asm
parent4f1ae4fa4250369919a975f5568425f6791b2489 (diff)
Reduced GDT magic numbers and added documentation
Diffstat (limited to 'src/loader/ent.asm')
-rw-r--r--src/loader/ent.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/loader/ent.asm b/src/loader/ent.asm
index c518aad..87b5e53 100644
--- a/src/loader/ent.asm
+++ b/src/loader/ent.asm
@@ -20,10 +20,10 @@ _start:
lgdt [gdt] ; Load GDT
- jmp 0x18:.reload_cs
+ jmp 0x18:.reload_cs ; Use third GDT segment for code
.reload_cs:
- mov eax, 0x20
+ mov eax, 0x20 ; Use fourth GDT segment for data/other
mov ds, ax
mov es, ax
mov fs, ax