summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2024-01-14 19:40:00 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2024-01-14 19:40:00 +0100
commit6c4dd008f98d50192012b2a80f74cbee6787f19c (patch)
tree608254f4f4a22b68a06dd58bbdb5e76dfea4f5a0
parentcaa60b967a84bdbe68f3bfdb303e4e56812193ae (diff)
downloadabaos-6c4dd008f98d50192012b2a80f74cbee6787f19c.tar.gz
abaos-6c4dd008f98d50192012b2a80f74cbee6787f19c.tar.bz2
changed order of A20 tests
-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