mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-16 01:42:39 +00:00
hv: update RTCT ACPI table detecting
Signature of RTCT ACPI table maybe "PTCT"(v1) or "RTCT"(v2). and the MAGIC number in CRL header is also changed from "PTCM" to "RTCM". This patch refine the code to detect RTCT table for both v1 and v2. Tracked-On: #6020 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
@@ -170,6 +170,10 @@ int32_t acpi_fixup(void)
|
||||
}
|
||||
|
||||
rtct_tbl_addr = (uint8_t *)get_acpi_tbl(ACPI_SIG_RTCT);
|
||||
if (rtct_tbl_addr == NULL) {
|
||||
rtct_tbl_addr = (uint8_t *)get_acpi_tbl(ACPI_SIG_RTCT_V2);
|
||||
}
|
||||
|
||||
if (rtct_tbl_addr != NULL) {
|
||||
set_rtct_tbl((void *)rtct_tbl_addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user