tree: Replace LAnd(a,b) with ASL 2.0 syntax
Replace `LAnd (a, b)` with `a && b`. Change-Id: I6b7b958e2d2a43926663a8dc8755613abb07e949 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70844 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
parent
f3649f03f3
commit
251d86bad1
|
@ -155,7 +155,7 @@ Method (_CRS, 0, Serialized)
|
||||||
CreateDWordField (MCRS, ^LMEM._MIN, LMIN)
|
CreateDWordField (MCRS, ^LMEM._MIN, LMIN)
|
||||||
CreateDWordField (MCRS, ^LMEM._MAX, LMAX)
|
CreateDWordField (MCRS, ^LMEM._MAX, LMAX)
|
||||||
CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
|
CreateDWordField (MCRS, ^LMEM._LEN, LLEN)
|
||||||
If (LAnd (LPFW != Zero, LPEN == One))
|
If (LPFW != Zero && LPEN == One)
|
||||||
{
|
{
|
||||||
LMIN = LPFW
|
LMIN = LPFW
|
||||||
LLEN = 0x00100000
|
LLEN = 0x00100000
|
||||||
|
|
|
@ -154,7 +154,7 @@ Method (_CRS, 0, Serialized)
|
||||||
CreateDWordField (MCRS, LMEM._MIN, LMIN)
|
CreateDWordField (MCRS, LMEM._MIN, LMIN)
|
||||||
CreateDWordField (MCRS, LMEM._MAX, LMAX)
|
CreateDWordField (MCRS, LMEM._MAX, LMAX)
|
||||||
CreateDWordField (MCRS, LMEM._LEN, LLEN)
|
CreateDWordField (MCRS, LMEM._LEN, LLEN)
|
||||||
If (LAnd (LPFW != Zero, LPEN == One))
|
If (LPFW != Zero && LPEN == One)
|
||||||
{
|
{
|
||||||
LMIN = LPFW
|
LMIN = LPFW
|
||||||
LMAX = LMIN + 0x001FFFFF
|
LMAX = LMIN + 0x001FFFFF
|
||||||
|
|
|
@ -36,8 +36,7 @@ Device (HDAS)
|
||||||
* NHLT Query only supported for revision 1 and
|
* NHLT Query only supported for revision 1 and
|
||||||
* if NHLT address and length are set in NVS.
|
* if NHLT address and length are set in NVS.
|
||||||
*/
|
*/
|
||||||
If (LAnd (Arg1 == One,
|
If (Arg1 == One && NHLA != Zero && NHLL != Zero) {
|
||||||
LAnd (NHLA != Zero, NHLL != Zero))) {
|
|
||||||
Return (Buffer (One) { 0x03 })
|
Return (Buffer (One) { 0x03 })
|
||||||
} Else {
|
} Else {
|
||||||
Return (Buffer (One) { 0x01 })
|
Return (Buffer (One) { 0x01 })
|
||||||
|
|
Loading…
Reference in New Issue