From 7b8ac0030c611ad84d9ba84b3e90c36233a32c11 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 26 Dec 2022 08:45:56 +0100 Subject: {acpi,arch,soc}/acpi: Replace constant "One" with actual number Change-Id: I3dfd7dd1de3bd27c35c195bd43c4a5b8c5a2dc53 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/71522 Reviewed-by: Eric Lai Reviewed-by: Elyes Haouas Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/arch/x86/acpi/debug.asl | 2 +- src/arch/x86/acpi/globutil.asl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/arch') diff --git a/src/arch/x86/acpi/debug.asl b/src/arch/x86/acpi/debug.asl index ad450a8125..589b874a76 100644 --- a/src/arch/x86/acpi/debug.asl +++ b/src/arch/x86/acpi/debug.asl @@ -138,7 +138,7 @@ Method(DBGO, 1) Name(BDBG, Buffer(80) {}) BDBG = Arg0 Local1 = 0 - while (One) { + while (1) { Local0 = GETC(BDBG, Local1) if (Local0 == 0) { return (0) diff --git a/src/arch/x86/acpi/globutil.asl b/src/arch/x86/acpi/globutil.asl index 8192cf3492..8f530f4bd5 100644 --- a/src/arch/x86/acpi/globutil.asl +++ b/src/arch/x86/acpi/globutil.asl @@ -44,7 +44,7 @@ Method(SCMP, 2) Local2 = Derefof(Local0[Local4]) Local3 = Derefof(Local1[Local4]) if (Local2 > Local3) { - Return(One) + Return(1) } else { if (Local2 < Local3) { Return(Ones) @@ -53,7 +53,7 @@ Method(SCMP, 2) Local4++ } if (Local4 < Local5) { - Return(One) + Return(1) } else { if (Local4 < Local6) { Return(Ones) @@ -83,7 +83,7 @@ Method(WCMP, 2) } Local2++ } - Return(One) + Return(1) } /* ARG0 = IRQ Number(0-15) -- cgit v1.2.3