diff --git a/sys/amd64/amd64/apic_vector.S b/sys/amd64/amd64/apic_vector.S index 569ed501a468..f8e0321652d5 100644 --- a/sys/amd64/amd64/apic_vector.S +++ b/sys/amd64/amd64/apic_vector.S @@ -351,7 +351,7 @@ Xinvlrng: movl smp_tlb_addr2, %eax 1: invlpg (%edx) /* invalidate single page */ addl $PAGE_SIZE, %edx - cmpl %edx, %eax + cmpl %eax, %edx jb 1b movl $0, lapic+LA_EOI /* End Of Interrupt to APIC */ diff --git a/sys/i386/i386/apic_vector.s b/sys/i386/i386/apic_vector.s index 569ed501a468..f8e0321652d5 100644 --- a/sys/i386/i386/apic_vector.s +++ b/sys/i386/i386/apic_vector.s @@ -351,7 +351,7 @@ Xinvlrng: movl smp_tlb_addr2, %eax 1: invlpg (%edx) /* invalidate single page */ addl $PAGE_SIZE, %edx - cmpl %edx, %eax + cmpl %eax, %edx jb 1b movl $0, lapic+LA_EOI /* End Of Interrupt to APIC */ diff --git a/sys/i386/isa/apic_vector.s b/sys/i386/isa/apic_vector.s index 569ed501a468..f8e0321652d5 100644 --- a/sys/i386/isa/apic_vector.s +++ b/sys/i386/isa/apic_vector.s @@ -351,7 +351,7 @@ Xinvlrng: movl smp_tlb_addr2, %eax 1: invlpg (%edx) /* invalidate single page */ addl $PAGE_SIZE, %edx - cmpl %edx, %eax + cmpl %eax, %edx jb 1b movl $0, lapic+LA_EOI /* End Of Interrupt to APIC */