mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-02 21:46:58 +00:00
This patch adds a function elf_loader() to load elf image. It checks the elf header, get its 32/64 bit type, then calls the corresponding loading routines, which are empty, and will be realized later. Tracked-On: #6323 Signed-off-by: Zhou, Wu <wu.zhou@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
25 lines
567 B
C
25 lines
567 B
C
/*
|
|
* Copyright (C) 2019 Intel Corporation. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef VBOOT_H
|
|
|
|
#define VBOOT_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 bzimage_loader(struct acrn_vm *vm);
|
|
#endif
|
|
#ifdef CONFIG_GUEST_KERNEL_RAWIMAGE
|
|
int32_t rawimage_loader(struct acrn_vm *vm);
|
|
#endif
|
|
#ifdef CONFIG_GUEST_KERNEL_ELF
|
|
int32_t elf_loader(struct acrn_vm *vm);
|
|
#endif
|
|
|
|
#endif /* end of include guard: VBOOT_H */
|