Small quality of life improvements
This commit is contained in:
parent
42980b1c20
commit
9b29393930
@ -57,8 +57,8 @@ const char *multiboot_module_rawstring(struct mem_region *region)
|
|||||||
VREGION_FLAGS_READ);
|
VREGION_FLAGS_READ);
|
||||||
|
|
||||||
if (err_is_fail(err)) {
|
if (err_is_fail(err)) {
|
||||||
DEBUG_ERR(err, "vspace_map failed");
|
// this error causes cascading problems so we panic
|
||||||
return NULL;
|
USER_PANIC_ERR(err, "vspace_map failed");
|
||||||
}
|
}
|
||||||
#if 0
|
#if 0
|
||||||
printf("Mapped multiboot_strings at %p\n", multiboot_strings);
|
printf("Mapped multiboot_strings at %p\n", multiboot_strings);
|
||||||
|
|||||||
@ -684,6 +684,7 @@ errval_t spawn_load_by_name(char *binary_name, struct spawninfo * si,
|
|||||||
|
|
||||||
// - Fill in argc/argv from the multiboot command line
|
// - Fill in argc/argv from the multiboot command line
|
||||||
const char * c_arguments_str = multiboot_module_opts(module);
|
const char * c_arguments_str = multiboot_module_opts(module);
|
||||||
|
if(c_arguments_str == NULL) return SPAWN_ERR_MALFORMED_SPAWND_RECORD;
|
||||||
// printf("c_arguments_str: %s\n", c_arguments_str);
|
// printf("c_arguments_str: %s\n", c_arguments_str);
|
||||||
char raw_arguments_str[strlen(c_arguments_str)];
|
char raw_arguments_str[strlen(c_arguments_str)];
|
||||||
strcpy(raw_arguments_str, c_arguments_str);
|
strcpy(raw_arguments_str, c_arguments_str);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user