summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Singer <felixsinger@posteo.net>2021-12-30 01:10:59 +0100
committerFelix Singer <felixsinger@posteo.net>2021-12-31 00:23:36 +0000
commit2c670870fdac7fcce39e2234955616e815fe013a (patch)
tree05a8f33ab50a55f9fcea04a270c01012ac498ed3
parentf00caca13e6d1f59ead3e72e8ac5f400f7510835 (diff)
soc/intel/apollolake/acpi: Replace Subtract(a,b,c) with ASL 2.0 syntax
Replace `Subtract (a, b, c)` with `c = a - b`. Change-Id: I8c98f4e3c3aed6209fd36398134a36778a560708 Signed-off-by: Felix Singer <felixsinger@posteo.net> Reviewed-on: https://review.coreboot.org/c/coreboot/+/60481 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
-rw-r--r--src/soc/intel/apollolake/acpi/northbridge.asl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/acpi/northbridge.asl b/src/soc/intel/apollolake/acpi/northbridge.asl
index f6b337c0f6..929bdd1455 100644
--- a/src/soc/intel/apollolake/acpi/northbridge.asl
+++ b/src/soc/intel/apollolake/acpi/northbridge.asl
@@ -109,7 +109,7 @@ Method (_CRS, 0, Serialized)
/* Set 64bit MMIO resource base and length */
Store (A4GS, MLEN)
Store (A4GB, MMIN)
- Subtract (Add (MMIN, MLEN), 1, MMAX)
+ MMAX = Add (MMIN, MLEN) - 1
}
Return (MCRS)