mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
HV: Add elf loader sketch
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>
This commit is contained in:
@@ -17,6 +17,8 @@ int32_t bzimage_loader(struct acrn_vm *vm);
|
||||
#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 */
|
||||
|
Reference in New Issue
Block a user