tree: Replace XOr(a,b,c) with ASL 2.0 syntax
Replace `XOr (a, b, c)` with `c = a ^ b`, respectively `c ^= b` where possible. Change-Id: Ic5f67684bbd4ea115c4dae8a4417d88bea0d6b77 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/70843 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
848c37da42
commit
f3649f03f3
|
@ -106,7 +106,7 @@ Device (BATX)
|
||||||
// ACPI spec : 0 - mWh : 1 - mAh
|
// ACPI spec : 0 - mWh : 1 - mAh
|
||||||
//
|
//
|
||||||
Local7 = SBCM
|
Local7 = SBCM
|
||||||
XOr (Local7, One, PBIF[0])
|
PBIF[0] = Local7 ^ One
|
||||||
|
|
||||||
//
|
//
|
||||||
// Information ID 0 -
|
// Information ID 0 -
|
||||||
|
@ -282,7 +282,7 @@ Device (BATX)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
XOr (DerefOf (PBIF[0]), One, Local6)
|
Local6 = DerefOf (PBIF[0]) ^ One
|
||||||
|
|
||||||
If (Local6)
|
If (Local6)
|
||||||
{
|
{
|
||||||
|
|
|
@ -134,7 +134,7 @@ Device (BAT0)
|
||||||
|
|
||||||
Local1 = SWAB (BTPR)
|
Local1 = SWAB (BTPR)
|
||||||
If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
|
If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
|
||||||
Xor (Local1, 0xFFFF, Local1)
|
Local1 ^= 0xFFFF
|
||||||
Local1++
|
Local1++
|
||||||
}
|
}
|
||||||
PBST[1] = Local1
|
PBST[1] = Local1
|
||||||
|
@ -144,7 +144,7 @@ Device (BAT0)
|
||||||
//
|
//
|
||||||
Local1 = SWAB (BTRA)
|
Local1 = SWAB (BTRA)
|
||||||
If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
|
If (Local1 != 0xFFFFFFFF && Local1 >= 0x8000) {
|
||||||
Xor (Local1, 0xFFFF, Local1)
|
Local1 ^= 0xFFFF
|
||||||
Local1++
|
Local1++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ Scope (\_GPE) {
|
||||||
* changes again. GIV1 is the interrupt level control
|
* changes again. GIV1 is the interrupt level control
|
||||||
* register for GPIO bits 15:8
|
* register for GPIO bits 15:8
|
||||||
*/
|
*/
|
||||||
Xor(GIV1, 0x80, GIV1)
|
GIV1 ^= 0x80
|
||||||
Notify(\_SB.LID0,0x80)
|
Notify(\_SB.LID0,0x80)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue