Skip to content

Commit 427bae1

Browse files
author
Ian Seyler
committed
Fix error in b_smp_busy
- compare all of RAX - use ‘ja’ instead of ‘jg’ as RAX contains an unsigned value
1 parent 09c8703 commit 427bae1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/syscalls/smp.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ b_smp_busy_read:
228228
cmp bl, cl ; Compare entry to local APIC ID
229229
je b_smp_busy_skip ; Skip the entry for the current CPU
230230
inc cx
231-
cmp al, 0x01 ; Bit 0 (Present) can be 0 or 1
232-
jg b_smp_busy_yes
231+
cmp rax, 0x01 ; Bit 0 (Present) can be 0 or 1
232+
ja b_smp_busy_yes
233233
cmp cx, 0x100 ; Only read up to 256 CPU cores
234234
jne b_smp_busy_read
235235

0 commit comments

Comments
 (0)