soc/intel/acpi: Replace Multiply(a,b,c) with ASL 2.0 syntax

Replace `Multiply (a, b, c)` with `c = a * b`.

Change-Id: I97332e3008ed2e26a75c067baffdabfc7cfcf65f
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/70627
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
This commit is contained in:
Felix Singer 2022-12-12 01:36:53 +01:00
parent 4bbd807c01
commit 447c399d35
3 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ Device (DPTF)
/* Convert from Degrees C to 1/10 Kelvin for ACPI */ /* Convert from Degrees C to 1/10 Kelvin for ACPI */
Method (CTOK, 1) { Method (CTOK, 1) {
/* 10th of Degrees C */ /* 10th of Degrees C */
Multiply (Arg0, 10, Local0) Local0 = Arg0 * 10
/* Convert to Kelvin */ /* Convert to Kelvin */
Local0 += 2732 Local0 += 2732

View File

@ -60,7 +60,7 @@ Device (DPTF)
/* Convert from Degrees C to 1/10 Kelvin for ACPI */ /* Convert from Degrees C to 1/10 Kelvin for ACPI */
Method (CTOK, 1) { Method (CTOK, 1) {
/* 10th of Degrees C */ /* 10th of Degrees C */
Multiply (Arg0, 10, Local0) Local0 = Arg0 * 10
/* Convert to Kelvin */ /* Convert to Kelvin */
Local0 += 2732 Local0 += 2732

View File

@ -37,7 +37,7 @@ Device (LPCB)
{ {
CreateDwordField (^RBUF, ^FBAR._BAS, FBAS) CreateDwordField (^RBUF, ^FBAR._BAS, FBAS)
CreateDwordField (^RBUF, ^FBAR._LEN, FLEN) CreateDwordField (^RBUF, ^FBAR._LEN, FLEN)
Multiply(CONFIG_COREBOOT_ROMSIZE_KB, 1024, Local0) Local0 = CONFIG_COREBOOT_ROMSIZE_KB * 1024
Store(Local0, FLEN) Store(Local0, FLEN)
FBAS = 0xffffffff - Local0 + 1 FBAS = 0xffffffff - Local0 + 1
Return (^RBUF) Return (^RBUF)