mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 02:08:04 +00:00
hv: add method to deal with ">4G MMIO" BIOS option
1. Fixed the bug that HV may crush when ">4G MMIO" BIOS option is disabled. 2. Fixed the bug that RTVM may encounter problems at reboot time when it makes use of pSRAM 3. HV will skip PTCM initialization when it cannot find PTCM. 4. Some codes are refined. Tracked-On: #5330 Signed-off-by: Qian Wang <qian1.wang@intel.com>
This commit is contained in:
@@ -18,6 +18,8 @@ typedef int32_t MSABI (*ptcm_command_abi)(uint32_t command, void *command_struct
|
||||
#define PTCM_CMD_RDMSR (int32_t)3U
|
||||
#define PTCM_CMD_WRMSR (int32_t)4U
|
||||
|
||||
#define PTCM_MAGIC 0x5054434dU
|
||||
|
||||
#define PCTM_L2_CLOS_MASK_MAX_NUM 8U
|
||||
#define PCTM_L3_CLOS_MASK_MAX_NUM 4U
|
||||
|
||||
@@ -37,4 +39,5 @@ struct ptcm_header
|
||||
uint64_t command_interface_offset;
|
||||
};
|
||||
|
||||
int32_t init_psram(bool is_bsp);
|
||||
#endif /* PTCM_H */
|
||||
|
@@ -101,5 +101,4 @@ struct ptcm_mem_region
|
||||
|
||||
extern uint64_t psram_area_bottom;
|
||||
extern uint64_t psram_area_top;
|
||||
void init_psram(bool is_bsp);
|
||||
#endif /* PTCT_H */
|
||||
|
Reference in New Issue
Block a user