mb/aopen/dxplplusu/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax

Replace `Subtract (a, b, c)` with `c = a - b`.

Change-Id: I22088a584c1d6d5188cb74ff8b03f51ea02e4b68
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60479
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2021-12-30 01:06:53 +01:00
parent 2e4cc9b699
commit cb9f038ec5
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ Device (MBRS)
Decrement (Local1)
If (LGreater (Local1, 0x10))
{
Subtract (Local1, 0x0F, Local1)
Local1 -= 0x0F
Store (ShiftLeft (Local1, 0x14), MEM2)
Store (0x01000000, MS00)
Store (MS00, MS01)

View File

@ -44,8 +44,8 @@ Method (_CRS, 0, NotSerialized)
And (\_SB.PCI0.TOLM, 0xF800, Local1)
ShiftRight (Local1, 0x04, Local1)
ShiftLeft (Local1, 0x14, MEML)
Subtract (IO_APIC_ADDR, 0x01, MEMH)
Subtract (IO_APIC_ADDR, MEML, LENM)
MEMH = IO_APIC_ADDR - 1
LENM = IO_APIC_ADDR - MEML
Return (PBRS)
}