diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2020-10-08 09:20:14 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-01-28 09:16:58 +0000 |
commit | a2c4cd7e086ec890f567ce74adb1c9ee880fff59 (patch) | |
tree | b1d506c531479ed6a613a6c6f8600250bf481cd3 /src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl | |
parent | 6245d076b96cfdddbea6bcc21ed9f0fba222b928 (diff) |
mb/emulation/qemu-i440fx: Convert to ASL 2.0 syntax
Generated 'build/dsdt.dsl' files are identical.
Change-Id: I9157d9fc61339792dbbc45e82e1cb04fa51c6aae
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/46077
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl')
-rw-r--r-- | src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl b/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl index 51e4f74267..da670cf889 100644 --- a/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl +++ b/src/mainboard/emulation/qemu-i440fx/acpi/hpet.asl @@ -14,13 +14,13 @@ Scope(\_SB) { PRD, 32, } Method(_STA, 0, NotSerialized) { - Store(VEND, Local0) - Store(PRD, Local1) - ShiftRight(Local0, 16, Local0) - If (LOr(LEqual(Local0, 0), LEqual(Local0, 0xffff))) { + Local0 = VEND + Local1 = PRD + Local0 >>= 16 + If ((Local0 == 0) || (Local0 == 0xffff)) { Return (0x0) } - If (LOr(LEqual(Local1, 0), LGreater(Local1, 100000000))) { + If ((Local1 == 0) || (Local1 > 100000000)) { Return (0x0) } Return (0x0F) |