diff options
author | Alexey Buyanov <alexey.buyanov@intel.com> | 2020-06-01 21:41:14 -0700 |
---|---|---|
committer | Subrata Banik <subrata.banik@intel.com> | 2020-06-13 09:03:32 +0000 |
commit | 03248033e7be6f81ad5b60ed21a60071aee32c67 (patch) | |
tree | ed158e24bf2808c7ed1546418f23754f5857fbfb /src/soc/intel/common/acpi/sgx.asl | |
parent | e334fea94b126760cf34f93131a884886a6de3a7 (diff) |
soc/intel/common: Introduce ASL2.0 syntax
Modify soc/intel/common .asl files to comply with ASL2.0 syntax for
better code readability and clarity
BUG=none
BRANCH=none
TEST= Deltan coreboot binary remains the same after the changes are applied
Signed-off-by: Alexey Buyanov <alexey.buyanov@intel.com>
Change-Id: I8f95cf88f499d9f9bdd8c80c95af52f8fd886cdf
Reviewed-on: https://review.coreboot.org/c/coreboot/+/42083
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-by: V Sowmya <v.sowmya@intel.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/soc/intel/common/acpi/sgx.asl')
-rw-r--r-- | src/soc/intel/common/acpi/sgx.asl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/soc/intel/common/acpi/sgx.asl b/src/soc/intel/common/acpi/sgx.asl index 4f47cf44e4..c0b8040729 100644 --- a/src/soc/intel/common/acpi/sgx.asl +++ b/src/soc/intel/common/acpi/sgx.asl @@ -37,15 +37,15 @@ Scope(\_SB) CreateQwordField (RBUF, ^BAR0._MIN, EMIN) CreateQwordField (RBUF, ^BAR0._MAX, EMAX) CreateQwordField (RBUF, ^BAR0._LEN, ELEN) - Store (EMNA, EMIN) - Store (ELNG, ELEN) - Subtract (Add (EMNA, ELNG), 1, EMAX) + EMIN = EMNA + ELEN = ELNG + EMAX = EMNA + ELNG - 1 Return (RBUF) } Method (_STA, 0x0, NotSerialized) { - If (LNotEqual (EPCS, 0)) + If (EPCS != 0) { Return (0xF) } |