Fix compiler warnings when building for UEFI

Signed-off-by: Rusty Lynch <rusty.lynch@intel.com>
This commit is contained in:
Rusty Lynch
2018-03-26 11:53:57 -07:00
committed by Jack Ren
parent 170c48a9fc
commit 95199161e0
4 changed files with 10 additions and 3 deletions

View File

@@ -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;

View File

@@ -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();