mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-28 18:04:23 +00:00
The patch splits the vm_load.c to three parts, the loader function of bzImage kernel is moved to bzimage_loader.c, the loader function of raw image kernel is moved to rawimage_loader.c, the stub is still stayed in vm_load.c to load the corresponding kernel loader function. Each loader function could be isolated by CONFIG_GUEST_KERNEL_XXX macro which generated by config tool. Tracked-On: #6323 Signed-off-by: Victor Sun <victor.sun@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
23 lines
511 B
C
23 lines
511 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VBOOT_INFO_H
|
|
|
|
#define VBOOT_INFO_H
|
|
|
|
int32_t init_vm_boot_info(struct acrn_vm *vm);
|
|
void load_sw_module(struct acrn_vm *vm, struct sw_module_info *sw_module);
|
|
|
|
#ifdef CONFIG_GUEST_KERNEL_BZIMAGE
|
|
int32_t vm_bzimage_loader(struct acrn_vm *vm);
|
|
#endif
|
|
#ifdef CONFIG_GUEST_KERNEL_RAWIMAGE
|
|
int32_t vm_rawimage_loader(struct acrn_vm *vm);
|
|
#endif
|
|
|
|
|
|
#endif /* end of include guard: VBOOT_INFO_H */
|