From 311981ef4886ff9b32985d6847748f036ce9db16 Mon Sep 17 00:00:00 2001
From: Felix Singer <felixsinger@posteo.net>
Date: Mon, 3 Jan 2022 19:01:06 +0100
Subject: arch/x86/acpi: Replace And() with ASL 2.0 syntax

Change-Id: I21b954ce62259bb77d88775c3086cfac17dd90c7
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60719
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 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/arch/x86/acpi/debug.asl b/src/arch/x86/acpi/debug.asl
index 728193e44f..70fd2ecb53 100644
--- a/src/arch/x86/acpi/debug.asl
+++ b/src/arch/x86/acpi/debug.asl
@@ -41,9 +41,9 @@ Method(DINI)
 */
 Method(THRE)
 {
-	and(CLSR, 0x20, local0)
+	local0 = CLSR & 0x20
 	while (local0 == 0) {
-		and(CLSR, 0x20, local0)
+		local0 = CLSR & 0x20
 	}
 }
 
@@ -75,7 +75,7 @@ Method(OUTC, 1)
 */
 Method(DBGN, 1)
 {
-	and(Arg0, 0x0f, Local0)
+	Local0 = Arg0 & 0x0f
 	if (Local0 < 10) {
 		Local0 += 0x30
 	} else {
-- 
cgit v1.2.3