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>
This commit is contained in:
Felix Singer 2022-01-03 19:01:06 +01:00
parent b4a7f74436
commit 311981ef48
1 changed files with 3 additions and 3 deletions

View File

@ -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 {