Browse Source
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
tags/v0.3.8^2
Martin Kroeker
GitHub
6 years ago
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
kernel/x86/lsame.S
|
|
|
@@ -56,13 +56,13 @@ |
|
|
|
#ifndef HAVE_CMOV |
|
|
|
movl %eax, %ecx |
|
|
|
subl $32, %ecx |
|
|
|
jle .L1 |
|
|
|
jl .L1 |
|
|
|
movl %ecx, %eax |
|
|
|
.L1: |
|
|
|
|
|
|
|
movl %edx, %ecx |
|
|
|
subl $32, %ecx |
|
|
|
jle .L2 |
|
|
|
jl .L2 |
|
|
|
movl %ecx, %edx |
|
|
|
.L2: |
|
|
|
subl %eax, %edx |
|
|
|
|