aboutsummaryrefslogtreecommitdiff
path: root/src/arch/x86
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2022-12-26 08:45:56 +0100
committerFelix Singer <felixsinger@posteo.net>2022-12-27 09:05:15 +0000
commit7b8ac0030c611ad84d9ba84b3e90c36233a32c11 (patch)
treee2dbc1e8cedf54fc1449e759deaff4e42c5f1bc6 /src/arch/x86
parentdfbb634ae16065811894d67ff802c1e838ce0749 (diff)
{acpi,arch,soc}/acpi: Replace constant "One" with actual number
Change-Id: I3dfd7dd1de3bd27c35c195bd43c4a5b8c5a2dc53 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/71522 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/arch/x86')
-rw-r--r--src/arch/x86/acpi/debug.asl2
-rw-r--r--src/arch/x86/acpi/globutil.asl6
2 files changed, 4 insertions, 4 deletions
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)