From 757a4045fc9dbeaf5f5a45b5b480bf80e8c19f79 Mon Sep 17 00:00:00 2001 From: crc Date: Tue, 30 Jan 2018 21:44:44 +0000 Subject: [PATCH] experimental: add gdt from RETRO9 FossilOrigin-Name: ada17c3df663734aa20aba70cd5f8d45e23ded36a0b5099ea4fc231c6ee23117 --- experimental/386.s | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/experimental/386.s b/experimental/386.s index e083e5a..596d2d7 100644 --- a/experimental/386.s +++ b/experimental/386.s @@ -27,6 +27,19 @@ header_start: header_end: +section .data +gdt: + dw (.end-.dummy) + dd .dummy + dw 0 +.dummy: dw 0,0,0,0 + dw 0xffff,0x0000 + db 0x00,0x9a,0xcf,0x00 + dw 0xffff,0x0000 + db 0x00,0x92,0xcf,0x00 +.end: + + section .text extern main global _start