Syscall Delegation is selectable by command line
This commit is contained in:
@ -24,7 +24,10 @@ static void ap_wait(void)
|
|||||||
}
|
}
|
||||||
kmalloc_init();
|
kmalloc_init();
|
||||||
sched_init();
|
sched_init();
|
||||||
/* init_host_syscall_channel(); */
|
|
||||||
|
if (find_command_line("hidos")) {
|
||||||
|
init_host_syscall_channel();
|
||||||
|
}
|
||||||
pc_ap_init();
|
pc_ap_init();
|
||||||
|
|
||||||
schedule();
|
schedule();
|
||||||
|
|||||||
@ -16,4 +16,6 @@ extern void init_host_syscall_channel(void);
|
|||||||
extern void sched_init(void);
|
extern void sched_init(void);
|
||||||
extern void pc_ap_init(void);
|
extern void pc_ap_init(void);
|
||||||
|
|
||||||
|
extern char *find_command_line(char *name);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -158,7 +158,9 @@ static void post_init(void)
|
|||||||
cpu_pause();
|
cpu_pause();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* init_host_syscall_channel(); */
|
if (find_command_line("hidos")) {
|
||||||
|
init_host_syscall_channel();
|
||||||
|
}
|
||||||
ap_start();
|
ap_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user