arch/x86/acpi: Replace LLess(a,b) with ASL 2.0 syntax

Replace `LLess(a, b)` with `a < b`.

Change-Id: Ief1d069ae0fb19a2179f08c2e9cf416367661e69
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60674
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Singer 2022-01-02 01:40:09 +01:00
parent 50002b7fac
commit 7ee6b5a3a5
2 changed files with 8 additions and 8 deletions

View File

@ -76,7 +76,7 @@ Method(OUTC, 1)
Method(DBGN, 1) Method(DBGN, 1)
{ {
and(Arg0, 0x0f, Local0) and(Arg0, 0x0f, Local0)
if (LLess(Local0, 10)) { if (Local0 < 10) {
Local0 += 0x30 Local0 += 0x30
} else { } else {
Local0 += 0x37 Local0 += 0x37

View File

@ -9,7 +9,7 @@ Scope(\_SB) {
/* string compare functions */ /* string compare functions */
Method(MIN, 2) Method(MIN, 2)
{ {
if (LLess(Arg0, Arg1)) { if (Arg0 < Arg1) {
Return(Arg0) Return(Arg0)
} else { } else {
Return(Arg1) Return(Arg1)
@ -40,22 +40,22 @@ Method(SCMP, 2)
Store(SLEN(Arg1), Local6) Store(SLEN(Arg1), Local6)
Store(MIN(Local5, Local6), Local7) Store(MIN(Local5, Local6), Local7)
While(LLess(Local4, Local7)) { While(Local4 < Local7) {
Store(Derefof(Local0[Local4]), Local2) Store(Derefof(Local0[Local4]), Local2)
Store(Derefof(Local1[Local4]), Local3) Store(Derefof(Local1[Local4]), Local3)
if (Local2 > Local3) { if (Local2 > Local3) {
Return(One) Return(One)
} else { } else {
if (LLess(Local2, Local3)) { if (Local2 < Local3) {
Return(Ones) Return(Ones)
} }
} }
Local4++ Local4++
} }
if (LLess(Local4, Local5)) { if (Local4 < Local5) {
Return(One) Return(One)
} else { } else {
if (LLess(Local4, Local6)) { if (Local4 < Local6) {
Return(Ones) Return(Ones)
} else { } else {
Return(Zero) Return(Zero)
@ -71,13 +71,13 @@ Method(WCMP, 2)
{ {
Store(S2BF(Arg0), Local0) Store(S2BF(Arg0), Local0)
Store(S2BF(Arg1), Local1) Store(S2BF(Arg1), Local1)
if (LLess(SLEN(Arg0), SLEN(Arg1))) { if (SLEN(Arg0) < SLEN(Arg1)) {
Return(0) Return(0)
} }
Store(Zero, Local2) Store(Zero, Local2)
Store(SLEN(Arg1), Local3) Store(SLEN(Arg1), Local3)
While(LLess(Local2, Local3)) { While(Local2 < Local3) {
if (LNotEqual(Derefof(Local0[Local2]), if (LNotEqual(Derefof(Local0[Local2]),
Derefof(Local1[Local2]))) { Derefof(Local1[Local2]))) {
Return(0) Return(0)