From 86bc2e708dc2600c5611b6573d43645e7d57e561 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Fri, 16 Dec 2022 04:40:39 +0100 Subject: tree: Replace Or(a,b,c) with ASL 2.0 syntax Replace `Or (a, b, c)` with `c = a | b`, respectively `c |= b` where possible. Change-Id: Icf194b248075f290de90fb4bc4e9a0cd9d76ec61 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70846 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/superio/acpi/pnp.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/superio/acpi') diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl index 167c3636b1..965145e2f7 100644 --- a/src/superio/acpi/pnp.asl +++ b/src/superio/acpi/pnp.asl @@ -102,7 +102,7 @@ #define PNP_READ_IO(IO_FROM, RESOURCE_TEMPLATE, IO_TAG) \ CreateWordField (RESOURCE_TEMPLATE, IO_TAG._MIN, IO_TAG##I)\ CreateWordField (RESOURCE_TEMPLATE, IO_TAG._MAX, IO_TAG##A)\ - Or (IO_FROM##_HIGH_BYTE << 8, IO_FROM##_LOW_BYTE, Local0)\ + Local0 = (IO_FROM##_HIGH_BYTE << 8) | IO_FROM##_LOW_BYTE \ IO_TAG##I = Local0 \ IO_TAG##A = Local0 -- cgit v1.2.3