From 806815e5f2612a45cdce6c47ace56146edfa7abf Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 16 May 2020 13:32:58 -0400 Subject: fixed gdt (works in virtualbox now) --- doc/internal/gdt.txt | 2 +- src/boot.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/internal/gdt.txt b/doc/internal/gdt.txt index f260cfe..6f5e1f4 100644 --- a/doc/internal/gdt.txt +++ b/doc/internal/gdt.txt @@ -1,3 +1,3 @@ 0x08: 0x0000.0000 - 0x0007.ffff (code) -0x10: 0x0000.0000 - 0x0007.ffff (data) +0x10: 0x0000.0000 - 0x000f.ffff (data) 0x18: 0x0003.8000 - 0x0003.ffff (stack) \ No newline at end of file diff --git a/src/boot.asm b/src/boot.asm index b476581..f9e3a30 100644 --- a/src/boot.asm +++ b/src/boot.asm @@ -47,7 +47,7 @@ gdt: .t: dq 0x0000_0000_0000_0000 dq 0x00c0_9a00_0000_007f - dq 0x00c0_9200_0000_007f + dq 0x00c0_9200_0000_00ff dq 0x0040_9203_8000_7fff .e: -- cgit v1.2.3