Skip to content

Commit 516ac1b

Browse files
author
Ian Seyler
committed
Fix error in b_smp_busy
- compare all of the RAX - use ‘ja’ instead of ‘jg’ as RAX contained an unsigned value
1 parent 1164ef8 commit 516ac1b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/syscalls/smp.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ b_smp_busy_read:
324324
cmp bl, cl ; Compare entry to local APIC ID
325325
je b_smp_busy_skip ; Skip the entry for the current CPU
326326
inc cx
327-
cmp al, 0x01 ; Bit 0 (Present) can be 0 or 1
328-
jg b_smp_busy_yes
327+
cmp rax, 0x01 ; Bit 0 (Present) can be 0 or 1
328+
ja b_smp_busy_yes
329329
cmp cx, 0x100 ; Only read up to 256 CPU cores
330330
jne b_smp_busy_read
331331

0 commit comments

Comments
 (0)