System task initialization moved to main()
- the system task initialization code does not really need to be part of the system task process. An earlier initialization in kernel is cleaner as it does not only initialize the syscalls but also irq hooks etc.
This commit is contained in:
@@ -75,10 +75,6 @@ PUBLIC void sys_task()
|
||||
int who_p;
|
||||
endpoint_t who_e;
|
||||
|
||||
/* Initialize the system task. */
|
||||
initialize();
|
||||
|
||||
|
||||
while (TRUE) {
|
||||
struct proc *restarting;
|
||||
|
||||
@@ -146,7 +142,7 @@ PUBLIC void sys_task()
|
||||
/*===========================================================================*
|
||||
* initialize *
|
||||
*===========================================================================*/
|
||||
PRIVATE void initialize(void)
|
||||
PUBLIC void system_init(void)
|
||||
{
|
||||
register struct priv *sp;
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user