summaryrefslogtreecommitdiff
path: root/src/boot/stage2_a20.asm
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/stage2_a20.asm')
-rw-r--r--src/boot/stage2_a20.asm28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/boot/stage2_a20.asm b/src/boot/stage2_a20.asm
index c0951ad..d9e2b36 100644
--- a/src/boot/stage2_a20.asm
+++ b/src/boot/stage2_a20.asm
@@ -62,6 +62,20 @@ check_and_enable_A20:
cmp ax, 1
je A20_ENABLED
+A20_FAST_SPECIAL_PORT:
+
+ mov al, 'F'
+ call print_char
+
+ in al, 0x92
+ or al, 2
+ out 0x92, al
+
+ call check_A20_enabled
+ cmp ax, 1
+ je A20_ENABLED
+ ret
+
A20_ENABLE_KBD_PORT:
mov al, 'K'
call print_char
@@ -129,20 +143,6 @@ A20_ENABLE_KBD_OUT:
cmp ax, 1
je A20_ENABLED
-A20_FAST_SPECIAL_PORT:
-
- mov al, 'F'
- call print_char
-
- in al, 0x92
- or al, 2
- out 0x92, al
-
- call check_A20_enabled
- cmp ax, 1
- je A20_ENABLED
- ret
-
A20_ENABLE_VIA_BIOS:
mov al, 'B'
call print_char