soc/intel/acpi: Replace Subtract(a,b) with ASL 2.0 syntax
Replace `Subtract (a, b)` with `a - b`. Change-Id: I77028c17dcd7925a392d56488d34090837d660f2 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70626 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
bf1de40853
commit
4bbd807c01
|
@ -175,8 +175,8 @@ Method (_CRS, 0, Serialized)
|
||||||
|
|
||||||
/* TOLM is BMBOUND accessible from IOSF so is saved in NVS */
|
/* TOLM is BMBOUND accessible from IOSF so is saved in NVS */
|
||||||
Store (\TOLM, PMIN)
|
Store (\TOLM, PMIN)
|
||||||
Store (Subtract(CONFIG_ECAM_MMCONF_BASE_ADDRESS, 1), PMAX)
|
Store (CONFIG_ECAM_MMCONF_BASE_ADDRESS - 1, PMAX)
|
||||||
PLEN = Subtract (PMAX, PMIN) + 1
|
PLEN = PMAX - PMIN + 1
|
||||||
|
|
||||||
Return (MCRS)
|
Return (MCRS)
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ Device (LPCB)
|
||||||
CreateDwordField (^RBUF, ^FBAR._LEN, FLEN)
|
CreateDwordField (^RBUF, ^FBAR._LEN, FLEN)
|
||||||
Multiply(CONFIG_COREBOOT_ROMSIZE_KB, 1024, Local0)
|
Multiply(CONFIG_COREBOOT_ROMSIZE_KB, 1024, Local0)
|
||||||
Store(Local0, FLEN)
|
Store(Local0, FLEN)
|
||||||
FBAS = Subtract(0xffffffff, Local0) + 1
|
FBAS = 0xffffffff - Local0 + 1
|
||||||
Return (^RBUF)
|
Return (^RBUF)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,8 +174,8 @@ Method (_CRS, 0, Serialized)
|
||||||
|
|
||||||
/* TOLM is BMBOUND accessible from IOSF so is saved in NVS */
|
/* TOLM is BMBOUND accessible from IOSF so is saved in NVS */
|
||||||
Store (\TOLM, PMIN)
|
Store (\TOLM, PMIN)
|
||||||
Store (Subtract(CONFIG_ECAM_MMCONF_BASE_ADDRESS, 1), PMAX)
|
Store (CONFIG_ECAM_MMCONF_BASE_ADDRESS - 1, PMAX)
|
||||||
PLEN = Subtract (PMAX, PMIN) + 1
|
PLEN = PMAX - PMIN + 1
|
||||||
|
|
||||||
Return (MCRS)
|
Return (MCRS)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue