From eb99f62456fc44f4db6c2f08316b4b56082dbfa6 Mon Sep 17 00:00:00 2001 From: Felix Singer Date: Mon, 12 Dec 2022 01:47:52 +0100 Subject: {drivers,superio}/acpi: Replace ShiftRight(a,b) with ASL 2.0 syntax Replace `ShiftRight (a, b)` with `a >> b`. Change-Id: I0751d00186e8dff38e02e7bf7d8ebf5a17514a58 Signed-off-by: Felix Singer Reviewed-on: https://review.coreboot.org/c/coreboot/+/70628 Tested-by: build bot (Jenkins) Reviewed-by: Eric Lai Reviewed-by: Elyes Haouas --- src/superio/acpi/pnp.asl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/superio') diff --git a/src/superio/acpi/pnp.asl b/src/superio/acpi/pnp.asl index 6fdcb85898..941e02b190 100644 --- a/src/superio/acpi/pnp.asl +++ b/src/superio/acpi/pnp.asl @@ -117,7 +117,7 @@ #define PNP_WRITE_IO(IO_TO, RESOURCE, IO_TAG) \ CreateWordField (RESOURCE, IO_TAG._MIN, IO_TAG##I)\ Store (And(IO_TAG##I, 0xff), IO_TO##_LOW_BYTE)\ - Store (ShiftRight(IO_TAG##I, 8), IO_TO##_HIGH_BYTE) + Store (IO_TAG##I >> 8, IO_TO##_HIGH_BYTE) #define PNP_WRITE_IRQ(IRQ_TO, RESOURCE, IRQ_TAG) \ CreateWordField (RESOURCE, IRQ_TAG._INT, IRQ_TAG##W)\ -- cgit v1.2.3