Kshell: load executable command
This commit is contained in:
+7
-1
@@ -51,7 +51,8 @@ void pedicel_main(void* arg)
|
||||
"pf - trigger a page fault\r\n"
|
||||
"now - get current date\r\n"
|
||||
"smash - smash the stack\r\n"
|
||||
"mem - get used heap info\r\n");
|
||||
"mem - get used heap info\r\n"
|
||||
"load - load an user executable\r\n");
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -96,6 +97,11 @@ void pedicel_main(void* arg)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (strncmp(input_buf, "load", 4) == 0) {
|
||||
loader_load_raw();
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("%s: command not found\r\n", input_buf);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user