Syscall Delegation is selectable by command line

This commit is contained in:
Taku Shimosawa
2012-02-29 09:35:28 +09:00
parent c88eba53c5
commit 07d4f293e2
3 changed files with 9 additions and 2 deletions

View File

@ -24,7 +24,10 @@ static void ap_wait(void)
}
kmalloc_init();
sched_init();
/* init_host_syscall_channel(); */
if (find_command_line("hidos")) {
init_host_syscall_channel();
}
pc_ap_init();
schedule();

View File

@ -16,4 +16,6 @@ extern void init_host_syscall_channel(void);
extern void sched_init(void);
extern void pc_ap_init(void);
extern char *find_command_line(char *name);
#endif

View File

@ -158,7 +158,9 @@ static void post_init(void)
cpu_pause();
}
/* init_host_syscall_channel(); */
if (find_command_line("hidos")) {
init_host_syscall_channel();
}
ap_start();
}