aboutsummaryrefslogtreecommitdiffstats
path: root/src/boot.stage2.gdt32.asm
diff options
context:
space:
mode:
authorkotorifan <kotorifan05@gmail.com>2026-01-31 13:32:57 +0100
committerkotorifan <kotorifan05@gmail.com>2026-02-04 09:01:10 +0100
commitdfe4a33865ef01c5068804f77da844cdebd87f00 (patch)
tree46dd2fe032a0dc0358737147cbfe5cfd1ab60a56 /src/boot.stage2.gdt32.asm
parente0030889e85b070576c40917c649df3338a384df (diff)
downloadkotori-os-dfe4a33865ef01c5068804f77da844cdebd87f00.tar.gz
Added stage 1 of the bootloader + make.sh
Diffstat (limited to 'src/boot.stage2.gdt32.asm')
-rw-r--r--src/boot.stage2.gdt32.asm29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/boot.stage2.gdt32.asm b/src/boot.stage2.gdt32.asm
new file mode 100644
index 0000000..f9f27a5
--- /dev/null
+++ b/src/boot.stage2.gdt32.asm
@@ -0,0 +1,29 @@
+y ;; boot.stage2.gdt32.asm
+
+
+GDT32:
+ .null:
+ dd 0x0
+ dd 0x0
+ .code:
+ dw 0xffff
+ dw 0x0000
+ db 0x00
+ db 10011010b
+ db 11001111b
+ db 0x00
+ .data:
+ dw 0xffff
+ dw 0x0000
+ db 0x00
+ db 10010010b
+ db 11001111b
+ db 0x00
+GDT32_end:
+
+GDT32_ptr:
+ .limit: dw GDT32_end - GDT32 - 1
+ .base: dd GDT32
+
+ CODE_SEG32 equ gdt32_code_segment - gdt32_start
+ DATA_SEG32 equ gdt32_data_segment - gdt32_start