X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fproc.c;h=6ce3071aaf104379519f69e74ec7f799ac1c5424;hb=de2caf08ef2eca066c3d5a40ab91d7f34c3f555e;hp=3971df00bb54907424748e89878b691151851de0;hpb=99ebec567d8485806f6ebe23b8c8a1b825d0cf4d;p=bertos.git diff --git a/kern/proc.c b/kern/proc.c index 3971df00..6ce3071a 100755 --- a/kern/proc.c +++ b/kern/proc.c @@ -17,6 +17,9 @@ /* * $Log$ + * Revision 1.7 2004/08/02 20:20:29 aleph + * Merge from project_ks + * * Revision 1.6 2004/07/30 14:24:16 rasky * Task switching con salvataggio perfetto stato di interrupt (SR) * Kernel monitor per dump informazioni su stack dei processi @@ -47,7 +50,7 @@ #include /* memset() */ -/*! CPU dependent context switching routines +/*! CPU dependent context switching routines * \note This function *MUST* preserve also the status of the interrupts. */ extern void asm_switch_context(cpustack_t **new_sp, cpustack_t **save_sp); @@ -157,6 +160,9 @@ void monitor_debug_stacks(void) static void proc_init_struct(Process* proc) { + /* Avoid warning for unused argument */ + (void)proc; + #if CONFIG_KERN_SIGNALS proc->sig_recv = 0; #endif @@ -166,6 +172,7 @@ static void proc_init_struct(Process* proc) #endif } + void proc_init(void) { INITLIST(&ProcReadyList);