mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +00:00
refine: remove redundant data type definition
remove data defination of mmio_addr_t, vaddr_t, paddr_t, and ioport_t. Signed-off-by: Zheng, Gen <gen.zheng@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com> Signed-off-by: Zheng, Gen <gen.zheng@intel.com>
This commit is contained in:
@@ -38,8 +38,6 @@
|
||||
#define _MULTIBOOT_H
|
||||
|
||||
#include <stdint.h>
|
||||
//typedef uintptr_t uint32_t;
|
||||
typedef uintptr_t vaddr_t;
|
||||
|
||||
struct multiboot_info;
|
||||
extern struct multiboot_info mbi;
|
||||
|
@@ -90,7 +90,7 @@ int sipi_from_efi_boot_service_exit(uint32_t dest, uint32_t mode, uint32_t vec)
|
||||
if (mode == APIC_DELMODE_STARTUP) {
|
||||
uint32_t cpu_id = cpu_find_logical_id(dest);
|
||||
send_startup_ipi(INTR_CPU_STARTUP_USE_DEST,
|
||||
cpu_id, (paddr_t)(vec<<12));
|
||||
cpu_id, (uint64_t)(vec<<12));
|
||||
efi_wake_up_ap_bitmap |= 1 << dest;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@ void efi_deferred_wakeup_pcpu(int cpu_id)
|
||||
expected_up = up_count + 1;
|
||||
|
||||
send_startup_ipi(INTR_CPU_STARTUP_USE_DEST,
|
||||
cpu_id, (paddr_t)cpu_secondary_reset);
|
||||
cpu_id, (uint64_t)cpu_secondary_reset);
|
||||
|
||||
timeout = CPU_UP_TIMEOUT * 1000;
|
||||
|
||||
|
Reference in New Issue
Block a user