X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=Vlv2DeviceRefCodePkg%2FAcpiTablesPCAT%2FTHERMAL.ASL;h=fecc040089a5c7435c9d864ff476818fe7b28d87;hp=e63f5bc69d037bf10f86c962b9d80d881fd9fe6e;hb=cc20411062137e5d820a33db73d41f97dae74368;hpb=c6de4b9611e260d6147cea073183d9339e9b7c3e diff --git a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL index e63f5bc69d..fecc040089 100644 --- a/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL +++ b/Vlv2DeviceRefCodePkg/AcpiTablesPCAT/THERMAL.ASL @@ -5,7 +5,7 @@ ;* Family of Customer Reference Boards. *; ;* *; ;* *; -;* Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved *; +;* Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved *; ; ; This program and the accompanying materials are licensed and made available under ; the terms and conditions of the BSD License that accompanies this distribution. @@ -69,7 +69,12 @@ Scope(\_TZ) { Store(DTS1,Local0) } - Return(Add(2732,Multiply(Local0,10))) + If (LEqual(And(Local0, 0x80), 0)) { + Return(Add(2732,Multiply(Local0,10))) + } else { + Add(Subtract(255, Local0), 1, Local0) + Return(Subtract(2732,Multiply(Local0,10))) + } // // Else return a static value if both EC and DTS are unavailable. //