mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 14:06:54 +00:00
Fix compiler warnings when building for UEFI
Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
This commit is contained in:
parent
11dad7732a
commit
504d1f9d28
@ -244,7 +244,7 @@ load_sos_image(EFI_HANDLE image, CHAR16 *name, CHAR16 *cmdline)
|
||||
struct multiboot_mmap *mmap;
|
||||
struct multiboot_info *mbi;
|
||||
|
||||
struct acpi_table_rsdp *rsdp;
|
||||
struct acpi_table_rsdp *rsdp = NULL;
|
||||
int i, j;
|
||||
|
||||
|
||||
|
@ -136,8 +136,8 @@ int uefi_sw_loader(struct vm *vm, struct vcpu *vcpu)
|
||||
vlapic_restore(vcpu->arch_vcpu.vlapic, &uefi_lapic_regs);
|
||||
|
||||
vcpu->entry_addr = efi_ctx->entry;
|
||||
cur_context->guest_cpu_regs.regs.rcx = efi_ctx->handle;
|
||||
cur_context->guest_cpu_regs.regs.rdx = efi_ctx->table;
|
||||
cur_context->guest_cpu_regs.regs.rcx = (uint64_t) efi_ctx->handle;
|
||||
cur_context->guest_cpu_regs.regs.rdx = (uint64_t) efi_ctx->table;
|
||||
|
||||
/* defer irq enabling till vlapic is ready */
|
||||
CPU_IRQ_ENABLE();
|
||||
|
@ -521,4 +521,9 @@ struct ioapic {
|
||||
|
||||
#define IOAPIC_RTE_INTVEC 0x000000ff /*R/W: INT vector field*/
|
||||
|
||||
#ifdef CONFIG_EFI_STUB
|
||||
int sipi_from_efi_boot_service_exit(uint32_t dest, uint32_t mode, uint32_t vec);
|
||||
void efi_deferred_wakeup_pcpu(int cpu_id);
|
||||
#endif
|
||||
|
||||
#endif /* _APICREG_H_ */
|
||||
|
@ -147,6 +147,8 @@
|
||||
|
||||
#ifndef ASSEMBLER
|
||||
|
||||
int cpu_find_logical_id(uint32_t lapic_id);
|
||||
|
||||
/**********************************/
|
||||
/* EXTERNAL VARIABLES */
|
||||
/**********************************/
|
||||
|
Loading…
Reference in New Issue
Block a user