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

@ -210,6 +210,9 @@ PUBLIC void main()
/* Architecture-dependent initialization. */
arch_init();
/* System and processes initialization */
system_init();
#if SPROFILE
sprofiling = 0; /* we're not profiling until instructed to */
#endif /* SPROFILE */

View file

@ -59,6 +59,7 @@ _PROTOTYPE( void send_sig, (int proc_nr, int sig_nr) );
_PROTOTYPE( void cause_sig, (proc_nr_t proc_nr, int sig_nr) );
_PROTOTYPE( void sig_delay_done, (struct proc *rp) );
_PROTOTYPE( void sys_task, (void) );
_PROTOTYPE( void system_init, (void) );
#define numap_local(proc_nr, vir_addr, bytes) \
umap_local(proc_addr(proc_nr), D, (vir_addr), (bytes))
_PROTOTYPE( phys_bytes umap_grant, (struct proc *, cp_grant_id_t, vir_bytes));

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;