Syscall Delegation is selectable by command line
This commit is contained in:
@ -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();
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user