From 60e1dfa8cdd9378e88588205f1c7e8e2e9af61e0 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 31 Dec 2021 13:45:48 +0100 Subject: [PATCH] arch/x86/acpi: Replace Increment() with ASL 2.0 syntax Replace `Increment(a)` with `a++`. Change-Id: I45ce13509f3e93d7d8cd69689604f24b926bcfbc Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/60579 Tested-by: build bot (Jenkins) Reviewed-by: HAOUAS Elyes --- src/arch/x86/acpi/debug.asl | 2 +- src/arch/x86/acpi/globutil.asl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/arch/x86/acpi/debug.asl b/src/arch/x86/acpi/debug.asl index fd071f8fdb..60f15956db 100644 --- a/src/arch/x86/acpi/debug.asl +++ b/src/arch/x86/acpi/debug.asl @@ -153,7 +153,7 @@ Method(DBGO, 1) return (0) } OUTC(Local0) - Increment(Local1) + Local1++ } } return (0) diff --git a/src/arch/x86/acpi/globutil.asl b/src/arch/x86/acpi/globutil.asl index 3a7144d3a5..e47b7f25a8 100644 --- a/src/arch/x86/acpi/globutil.asl +++ b/src/arch/x86/acpi/globutil.asl @@ -50,7 +50,7 @@ Method(SCMP, 2) Return(Ones) } } - Increment(Local4) + Local4++ } if (LLess(Local4, Local5)) { Return(One) @@ -82,7 +82,7 @@ Method(WCMP, 2) Derefof(Local1[Local2]))) { Return(0) } - Increment(Local2) + Local2++ } Return(One) }