diff options
author | Felix Singer <felixsinger@posteo.net> | 2021-12-30 02:01:00 +0100 |
---|---|---|
committer | Felix Singer <felixsinger@posteo.net> | 2021-12-31 08:56:09 +0000 |
commit | abff1a51c495214a2b6d7f6b3db5db0bc038ac07 (patch) | |
tree | be8d110560c289a1300a5bdc10c7411f39fb350a | |
parent | 1bdac6a8e71d6dc5de90fc74dde2465ed6dc77eb (diff) |
arch/x86/acpi: Replace Add(a,b,c) with ASL 2.0 syntax
Replace `Add (a, b, c)` with `c = a + b`.
Change-Id: I10a94406aa7e66eed4fec22f56b7a8802252e781
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60495
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
-rw-r--r-- | src/arch/x86/acpi/globutil.asl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/acpi/globutil.asl b/src/arch/x86/acpi/globutil.asl index 2600d0b5eb..25feaeac5c 100644 --- a/src/arch/x86/acpi/globutil.asl +++ b/src/arch/x86/acpi/globutil.asl @@ -24,7 +24,7 @@ Method(SLEN, 1) Method(S2BF, 1, Serialized) { - Add(SLEN(Arg0), One, Local0) + Local0 = SLEN(Arg0) + 1 Name(BUFF, Buffer(Local0) {}) Store(Arg0, BUFF) Return(BUFF) |