From 6c4dd008f98d50192012b2a80f74cbee6787f19c Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 14 Jan 2024 19:40:00 +0100 Subject: changed order of A20 tests --- src/boot/stage2_a20.asm | 28 ++++++++++++++-------------- 1 file 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 -- cgit v1.2.3-54-g00ecf