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:
Tomas Hruby
2010-02-09 15:12:20 +00:00
parent bdd4f5857f
commit 8a03d497b8
3 changed files with 5 additions and 5 deletions

View File

@@ -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;