Skip to content

Commit aef9804

Browse files
authored
Fix unwanted case-sensitivity in x86 LSAME for (AMD) processors without CMOV
Problem was already noticed some years ago in #238, but back then the problem was only corrected in one of the #ifdef branches. Fixes #2214
1 parent abea977 commit aef9804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kernel/x86/lsame.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@
5656
#ifndef HAVE_CMOV
5757
movl %eax, %ecx
5858
subl $32, %ecx
59-
jle .L1
59+
jl .L1
6060
movl %ecx, %eax
6161
.L1:
6262

6363
movl %edx, %ecx
6464
subl $32, %ecx
65-
jle .L2
65+
jl .L2
6666
movl %ecx, %edx
6767
.L2:
6868
subl %eax, %edx

0 commit comments

Comments
 (0)