Skip to content
Snippets Groups Projects
Commit 79faf065 authored by hugno051's avatar hugno051
Browse files

process c

parent 6adc6283
No related branches found
No related tags found
No related merge requests found
...@@ -60,9 +60,11 @@ static void start_process(void* cmd_line_) ...@@ -60,9 +60,11 @@ static void start_process(void* cmd_line_)
if_.gs = if_.fs = if_.es = if_.ds = if_.ss = SEL_UDSEG; if_.gs = if_.fs = if_.es = if_.ds = if_.ss = SEL_UDSEG;
if_.cs = SEL_UCSEG; if_.cs = SEL_UCSEG;
if_.eflags = FLAG_IF | FLAG_MBS; if_.eflags = FLAG_IF | FLAG_MBS;
char* file_name;
char* token = strtok_r(cmd_line," ", &if_.esp);
file_name=token;
// Note: load requires the file name only, not the entire cmd_line // Note: load requires the file name only, not the entire cmd_line
success = load(cmd_line, &if_.eip, &if_.esp); success = load(file_name, &if_.eip, &if_.esp);
/* If load failed, quit. */ /* If load failed, quit. */
palloc_free_page(cmd_line); palloc_free_page(cmd_line);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment