Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 919 → Rev 920

/shark/trunk/kernel/init.c
18,11 → 18,11
 
/**
------------
CVS : $Id: init.c,v 1.4 2004-05-17 15:03:51 anton Exp $
CVS : $Id: init.c,v 1.5 2005-01-08 14:48:24 pj Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2004-05-17 15:03:51 $
Revision: $Revision: 1.5 $
Last update: $Date: 2005-01-08 14:48:24 $
------------
 
- Kernel module registration functions
368,14 → 368,13
 
/*+ This function returns a resource_des **. the value returned shall be
used to register a resource module. The function shall be called only at
module registration time. It assume that the system is not yet
initialized, so we shall not call sys_abort... +*/
module registration time. +*/
RLEVEL resource_alloc_descriptor()
{
if (res_levels == MAX_RES_LEVEL)
{
printk("Too many resource levels!!!\n");
sys_end();
exit(1);
}
 
return res_levels++;
/shark/trunk/kernel/exchand.c
18,11 → 18,11
 
/**
------------
CVS : $Id: exchand.c,v 1.8 2004-04-27 10:43:50 giacomo Exp $
CVS : $Id: exchand.c,v 1.9 2005-01-08 14:48:59 pj Exp $
 
File: $File$
Revision: $Revision: 1.8 $
Last update: $Date: 2004-04-27 10:43:50 $
Revision: $Revision: 1.9 $
Last update: $Date: 2005-01-08 14:48:59 $
------------
**/
 
145,7 → 145,7
myflag = 1;
myinfo = *info;
sys_gettime(&mytime),
sys_abort(AHEXC);
exit(AHEXC);
}
}
 
/shark/trunk/kernel/signal.c
18,11 → 18,11
 
/**
------------
CVS : $Id: signal.c,v 1.11 2004-06-16 08:12:32 giacomo Exp $
CVS : $Id: signal.c,v 1.12 2005-01-08 14:46:18 pj Exp $
 
File: $File$
Revision: $Revision: 1.11 $
Last update: $Date: 2004-06-16 08:12:32 $
Revision: $Revision: 1.12 $
Last update: $Date: 2005-01-08 14:46:18 $
------------
 
This file contains:
1294,7 → 1294,7
kern_printf("\nSignal number %d...\n",sig);
if (act.sa_flags & SA_SIGINFO)
kern_printf("with value : %d\n",info->si_value.sival_int);
sys_abort(ASIG_DEFAULT_ACTION);
exit(ASIG_DEFAULT_ACTION);
}
 
/*
1355,10 → 1355,10
/* (*)
when we are in an exception, we don't have to call the
really_deliver signal.
For example, when the capacity of a task is exausted, an event is
called. this event simply call scheduler, that call the task_epilogue.
For example, when the capacity of a task is exausted, an OSLib event is
called. this event simply call scheduler, that call the public_epilogue.
 
the task_epilogue checks the capacity and raise an exception, BUT
the public_epilogue checks the capacity and raise an exception, BUT
we don't have to deliver this exception immediately.
 
Why? because the task pointed by exec_shadow was extracted from the