summaryrefslogtreecommitdiff
path: root/src/soc/intel/apollolake/acpi/northbridge.asl
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/intel/apollolake/acpi/northbridge.asl')
-rw-r--r--src/soc/intel/apollolake/acpi/northbridge.asl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/intel/apollolake/acpi/northbridge.asl b/src/soc/intel/apollolake/acpi/northbridge.asl
index 1b59097772..4f2acbb8bd 100644
--- a/src/soc/intel/apollolake/acpi/northbridge.asl
+++ b/src/soc/intel/apollolake/acpi/northbridge.asl
@@ -83,7 +83,7 @@ Method (_CRS, 0, Serialized)
And(\_SB.PCI0.MCHC.MCNF, 0xF0000000, PMAX)
/* Calculate PCI MMIO Length */
- PLEN = Subtract(PMAX, PMIN) + 1
+ PLEN = PMAX - PMIN + 1
/* Find GFX resource area in GCRS */
CreateDwordField(MCRS, STOM._MIN, GMIN)
@@ -96,7 +96,7 @@ Method (_CRS, 0, Serialized)
/* Read TOLUD */
And(\_SB.PCI0.MCHC.TLUD, 0xFFF00000, GMAX)
Decrement(GMAX)
- GLEN = Subtract(GMAX, GMIN) + 1
+ GLEN = GMAX - GMIN + 1
/* Patch PM02 range based on Memory Size */
If (LEqual (A4GS, 0)) {