arch/x86/acpi: Replace LGreater(a,b) with ASL 2.0 syntax
Replace `LGreater(a, b)` with `a > b`. Change-Id: I0cabf4f69191fe345fd72619847db384db2e0e87 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60687 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
This commit is contained in:
parent
9b13bfc6c9
commit
362de0654c
|
@ -125,10 +125,10 @@ Method(DBGO, 1)
|
||||||
{
|
{
|
||||||
/* DINI() */
|
/* DINI() */
|
||||||
if (ObjectType(Arg0) == 1) {
|
if (ObjectType(Arg0) == 1) {
|
||||||
if (LGreater(Arg0, 0xffff)) {
|
if (Arg0 > 0xffff) {
|
||||||
DBGD(Arg0)
|
DBGD(Arg0)
|
||||||
} else {
|
} else {
|
||||||
if (LGreater(Arg0, 0xff)) {
|
if (Arg0 > 0xff) {
|
||||||
DBGW(Arg0)
|
DBGW(Arg0)
|
||||||
} else {
|
} else {
|
||||||
DBGB(Arg0)
|
DBGB(Arg0)
|
||||||
|
|
|
@ -43,7 +43,7 @@ Method(SCMP, 2)
|
||||||
While(LLess(Local4, Local7)) {
|
While(LLess(Local4, Local7)) {
|
||||||
Store(Derefof(Local0[Local4]), Local2)
|
Store(Derefof(Local0[Local4]), Local2)
|
||||||
Store(Derefof(Local1[Local4]), Local3)
|
Store(Derefof(Local1[Local4]), Local3)
|
||||||
if (LGreater(Local2, Local3)) {
|
if (Local2 > Local3) {
|
||||||
Return(One)
|
Return(One)
|
||||||
} else {
|
} else {
|
||||||
if (LLess(Local2, Local3)) {
|
if (LLess(Local2, Local3)) {
|
||||||
|
|
Loading…
Reference in New Issue