diff options
author | Felix Singer <felixsinger@posteo.net> | 2022-12-25 16:54:45 +0100 |
---|---|---|
committer | Elyes Haouas <ehaouas@noos.fr> | 2022-12-26 19:57:44 +0000 |
commit | 8171364d064afe5e714e4d6faee3cf44d843eb19 (patch) | |
tree | 077fa3a7ea51d211bdc321a2132bc8ead1638323 /src/mainboard/acer | |
parent | eaa31d95c239a0a9b3c12a69ccbc71ac8f6f6034 (diff) |
tree/acpi: Replace Divide(a,b,c,d) with ASL 2.0 syntax
Replace `Divide (a, b, c, d)` with these instructions:
c = a % b
d = a / b
Change-Id: I44366be5b5145a5d19f85df7a2f338866cb9c8b0
Signed-off-by: Felix Singer <felixsinger@posteo.net>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71515
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Reviewed-by: Elyes Haouas <ehaouas@noos.fr>
Diffstat (limited to 'src/mainboard/acer')
-rw-r--r-- | src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl b/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl index 1f4fb47ba5..1a06314dd4 100644 --- a/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl +++ b/src/mainboard/acer/aspire_vn7_572g/acpi/battery.asl @@ -189,7 +189,8 @@ Method (GBIF, 3, NotSerialized) Local6 = 4 While (Local7) { - Divide (Local7, 10, Local5, Local7) + Local5 = Local7 % 10 + Local7 = Local7 / 10 SERN[Local6] = (Local5 + 0x30) // Add 0x30 to get numeric ASCII Local6-- } |