mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-14 13:30:01 +00:00
dm: add elf loader to dm
This patch adds a simple 32bit static elf binary loader to acrn DM. And if the elf binary follow multiboot protocol, only memory info will be included in multiboot info. Tracked-On: #1465 Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "dm.h"
|
||||
#include "vmmapi.h"
|
||||
#include "sw_load.h"
|
||||
|
||||
@@ -137,6 +138,8 @@ acrn_parse_kernel(char *arg)
|
||||
kernel_path);
|
||||
exit(10); /* Non-zero */
|
||||
}
|
||||
kernel_file_name = kernel_path;
|
||||
|
||||
with_kernel = 1;
|
||||
printf("SW_LOAD: get kernel path %s\n", kernel_path);
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user