mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-08 00:17:01 +00:00
1. add static for local functions and variables. 2. move vm_sw_loader from vcpu to vm 3. refine uefi.c to follow the code rules. 4. separate uefi.c for vm0 boot and bsp two parts. bsp layer just access native HW related, can't access vm/vcpu, vm0 boot part can access vm / vcpu data structure. Tracked-On: #1842 Signed-off-by: Minggui Cao <minggui.cao@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
21 lines
344 B
C
21 lines
344 B
C
/*
|
|
* Copyright (C) 2018 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VM0_BOOT_H
|
|
#define VM0_BOOT_H
|
|
|
|
#ifdef CONFIG_EFI_STUB
|
|
struct efi_context {
|
|
struct acrn_vcpu_regs vcpu_regs;
|
|
void *rsdp;
|
|
void *ap_trampoline_buf;
|
|
} __packed;
|
|
|
|
int32_t efi_boot_init(void);
|
|
#endif
|
|
|
|
#endif /* VM0_BOOT_H */
|