mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
hv: replace CPU_PAGE_SHIFT with PAGE_SHIFT
- replace CPU_PAGE_SHIFT with PAGE_SHIFT These two MACROs are duplicated and PAGE_SHIFT is a more reasonable name. - remove unused MACROs related to page shift in cpu.h Tracked-On: #861 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -909,7 +909,7 @@ static void get_entry_info(const struct ptirq_remapping_info *entry, char *type,
|
||||
if (is_entry_active(entry)) {
|
||||
if (entry->intr_type == PTDEV_INTR_MSI) {
|
||||
(void)strcpy_s(type, 16U, "MSI");
|
||||
*dest = (entry->msi.pmsi_addr & 0xFF000U) >> CPU_PAGE_SHIFT;
|
||||
*dest = (entry->msi.pmsi_addr & 0xFF000U) >> PAGE_SHIFT;
|
||||
if ((entry->msi.pmsi_data & APIC_TRIGMOD_LEVEL) != 0U) {
|
||||
*lvl_tm = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user