diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-01-03 19:16:43 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2022-07-30 00:11:58 +0000 |
commit | a44620dea90adc5975d8f495f92d6efb174274f7 (patch) | |
tree | b213539b6d3319d0b606e7e283266f8b2e0163bd /src/arch/x86/acpi/globutil.asl | |
parent | 311981ef4886ff9b32985d6847748f036ce9db16 (diff) |
arch/x86/acpi: Replace Store() with ASL 2.0 syntax
Change-Id: I30bbd0288475fbefec55ce294e7963df1de6aa6a
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60720
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Sean Rhodes <sean@starlabs.systems>
Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Diffstat (limited to 'src/arch/x86/acpi/globutil.asl')
-rw-r--r-- | src/arch/x86/acpi/globutil.asl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/arch/x86/acpi/globutil.asl b/src/arch/x86/acpi/globutil.asl index e9bbcfee0c..8192cf3492 100644 --- a/src/arch/x86/acpi/globutil.asl +++ b/src/arch/x86/acpi/globutil.asl @@ -18,7 +18,7 @@ Method(MIN, 2) Method(SLEN, 1) { - Store(Arg0, Local0) + Local0 = Arg0 Return(Sizeof(Local0)) } @@ -26,23 +26,23 @@ Method(S2BF, 1, Serialized) { Local0 = SLEN(Arg0) + 1 Name(BUFF, Buffer(Local0) {}) - Store(Arg0, BUFF) + BUFF = Arg0 Return(BUFF) } /* Strong string compare. Checks both length and content */ Method(SCMP, 2) { - Store(S2BF(Arg0), Local0) - Store(S2BF(Arg1), Local1) - Store(Zero, Local4) - Store(SLEN(Arg0), Local5) - Store(SLEN(Arg1), Local6) - Store(MIN(Local5, Local6), Local7) + Local0 = S2BF(Arg0) + Local1 = S2BF(Arg1) + Local4 = 0 + Local5 = SLEN(Arg0) + Local6 = SLEN(Arg1) + Local7 = MIN(Local5, Local6) While(Local4 < Local7) { - Store(Derefof(Local0[Local4]), Local2) - Store(Derefof(Local1[Local4]), Local3) + Local2 = Derefof(Local0[Local4]) + Local3 = Derefof(Local1[Local4]) if (Local2 > Local3) { Return(One) } else { @@ -69,13 +69,13 @@ Method(SCMP, 2) */ Method(WCMP, 2) { - Store(S2BF(Arg0), Local0) - Store(S2BF(Arg1), Local1) + Local0 = S2BF(Arg0) + Local1 = S2BF(Arg1) if (SLEN(Arg0) < SLEN(Arg1)) { Return(0) } - Store(Zero, Local2) - Store(SLEN(Arg1), Local3) + Local2 = 0 + Local3 = SLEN(Arg1) While(Local2 < Local3) { if (Derefof(Local0[Local2]) != Derefof(Local1[Local2])) { @@ -91,9 +91,9 @@ Method(WCMP, 2) */ Method(I2BM, 1) { - Store(0, Local0) + Local0 = 0 if (ARG0 != 0) { - Store(1, Local1) + Local1 = 1 Local0 = Local1 << ARG0 } Return(Local0) |