summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-07-17 19:20:27 +0200
committerCarlos Maiolino <[email protected]>2025-07-17 19:20:27 +0200
commit9474d5fd709f6d26e09e6aebf82f2c83d1dd2e87 (patch)
tree7180dea6191bcac01d03338bcb4e82b5cc8941e0
parenta485d59fdaf7b768f95539991d72421fb0ec85de (diff)
Enable A20 line
Signed-off-by: Carlos Maiolino <[email protected]>
-rw-r--r--src/boot/bootloader.asm6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/boot/bootloader.asm b/src/boot/bootloader.asm
index f42e702..fc17af8 100644
--- a/src/boot/bootloader.asm
+++ b/src/boot/bootloader.asm
@@ -87,6 +87,12 @@ start_32:
; Set the stack pointer and base pointer further in mem
mov ebp, 0x00200000
mov esp, ebp
+
+ ; Enable A20 line
+ in al, 0x92
+ or al, 2
+ out 0x92, al
+
jmp $
; Fill in to the end and add bootloader signature