mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +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:
@@ -149,7 +149,8 @@ bool init_software_sram(bool is_bsp)
|
||||
header = hpa2hva(rtcm_binary->address);
|
||||
pr_info("rtcm_bin_address:%llx, rtcm magic:%x, rtcm version:%x",
|
||||
rtcm_binary->address, header->magic, header->version);
|
||||
ASSERT(header->magic == RTCM_MAGIC, "Incorrect RTCM magic!");
|
||||
ASSERT(((header->magic == RTCM_MAGIC_PTCM) || (header->magic == RTCM_MAGIC_RTCM)),
|
||||
"Wrong RTCM magic value!");
|
||||
|
||||
/* Flush the TLB, so that BSP/AP can execute the RTCM ABI */
|
||||
flush_tlb_range((uint64_t)hpa2hva(rtcm_binary->address), rtcm_binary->size);
|
||||
|
Reference in New Issue
Block a user