With refactoring the boot code the memory region descriptor needed
to be changed. This PR adapts the patch to work with the new version.
Signed-off-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #7
- ret = execute_from_lexer(LEX_SRC_STDIN, NULL, MP_PARSE_FILE_INPUT, false);
- }
+ /* see if script is available from initrd */
-+ struct ukplat_memregion_desc img;
++ struct ukplat_memregion_desc *img;
+ char *cstr;
+ if (ukplat_memregion_find_initrd0(&img) >= 0) {
-+ cstr = (char *)img.base;
++ cstr = (char *)img->vbase;
+ ret = do_str(cstr);
+ }
+ /* repl mode */