From 50002b7fac5f3ef7c2124893d55a49405ff2e02f Mon Sep 17 00:00:00 2001
From: Felix Singer <felixsinger@posteo.net>
Date: Fri, 29 Jul 2022 01:46:06 +0200
Subject: arch/x86/acpi: Replace Add(a,b,c) with ASL 2.0 syntax

Replace `Add (a, b, c)` with `c = a + b`.

Change-Id: If848d391e5ec33ebfb08515414739dbdd5011e08
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/66249
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
---
 src/arch/x86/acpi/debug.asl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src')

diff --git a/src/arch/x86/acpi/debug.asl b/src/arch/x86/acpi/debug.asl
index 3f04b03c37..41d123520e 100644
--- a/src/arch/x86/acpi/debug.asl
+++ b/src/arch/x86/acpi/debug.asl
@@ -77,9 +77,9 @@ Method(DBGN, 1)
 {
 	and(Arg0, 0x0f, Local0)
 	if (LLess(Local0, 10)) {
-		add(Local0, 0x30, Local0)
+		Local0 += 0x30
 	} else {
-		add(Local0, 0x37, Local0)
+		Local0 += 0x37
 	}
 	OUTC(Local0)
 }
-- 
cgit v1.2.3