From 93329d8189ad5b4447d748a1b0390cf4ac2a22d3 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Fri, 5 Feb 2021 20:10:24 +0100 Subject: soc/intel/xeon_sp/include/soc/acpi_asl.h: Convert to ASL 2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ie1d31b9d02584b97b85afe970894cfe557174733 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/c/coreboot/+/50324 Tested-by: build bot (Jenkins) Reviewed-by: Angel Pons Reviewed-by: Michael Niewöhner --- src/soc/intel/xeon_sp/include/soc/acpi_asl.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/soc') diff --git a/src/soc/intel/xeon_sp/include/soc/acpi_asl.h b/src/soc/intel/xeon_sp/include/soc/acpi_asl.h index e08e02be35..befce2e1b8 100644 --- a/src/soc/intel/xeon_sp/include/soc/acpi_asl.h +++ b/src/soc/intel/xeon_sp/include/soc/acpi_asl.h @@ -44,22 +44,22 @@ IRQ (Level, ActiveLow, Shared) {} \ }) \ CreateWordField (RTLA, 1, IRQ0) \ - Store (Zero, IRQ0) \ + IRQ0 = 0 \ \ /* Set the bit from PIRQ Routing Register */ \ - ShiftLeft (1, And (^^PIR##id, ^^IREM), IRQ0) \ + IRQ0 = 1 << (^^PIR##id & ^^IREM) \ Return (RTLA) \ } \ Method (_SRS, 1, Serialized) \ { \ CreateWordField (Arg0, 1, IRQ0) \ FindSetRightBit (IRQ0, Local0) \ - Decrement (Local0) \ - Store (Local0, ^^PIR##id) \ + Local0-- \ + ^^PIR##id = Local0 \ } \ Method (_STA, 0, Serialized) \ { \ - If (And (^^PIR##id, ^^IREN)) { \ + If (^^PIR##id & ^^IREN) { \ Return (0x9) \ } Else { \ Return (0xb) \ @@ -67,7 +67,7 @@ } \ Method (_DIS, 0, Serialized) \ { \ - Or (^^PIR##id, ^^IREN, ^^PIR##id) \ + ^^PIR##id |= ^^IREN \ } \ } -- cgit v1.2.3