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:
parent
2e4cc9b699
commit
cb9f038ec5
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue