X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fproc_p.h;h=79e97b9230cbe16bd7b9cbbfafc38622cb1e1f34;hb=523e193fdf11016eb6e1b334a7f706f1ba19a86a;hp=4e9ee6f7d2228ce594850c63066ccee77f2d33af;hpb=96f0ef786b54356c56cc3d4e4f0838df2505cfcc;p=bertos.git diff --git a/kern/proc_p.h b/kern/proc_p.h index 4e9ee6f7..79e97b92 100755 --- a/kern/proc_p.h +++ b/kern/proc_p.h @@ -15,6 +15,16 @@ /* * $Log$ + * Revision 1.5 2004/08/14 19:37:57 rasky + * Merge da SC: macros.h, pool.h, BIT_CHANGE, nome dei processi, etc. + * + * Revision 1.4 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 + * + * Revision 1.3 2004/07/14 14:18:09 rasky + * Merge da SC: Rimosso timer dentro il task, che è uno spreco di memoria per troppi task + * * Revision 1.2 2004/06/03 11:27:09 bernie * Add dual-license information. * @@ -42,28 +52,34 @@ #include "config.h" #include "config_kern.h" #include -#include - typedef struct Process { Node link; /*!< Link Process into scheduler lists */ cpustack_t *stack; /*!< Per-process SP */ + IPTR user_data; /*!< Custom data passed to the process */ #if CONFIG_KERN_SIGNALS sigset_t sig_wait; /*!< Signals the process is waiting for */ sigset_t sig_recv; /*!< Received signals */ #endif -#if CONFIG_KERN_TIMER - struct Timer proc_timer; /*!< Process own timer */ -#endif - #if CONFIG_KERN_HEAP uint16_t flags; /*!< Flags */ cpustack_t *stack_base; /*!< Base of process stack */ size_t stack_size; /*!< Size of process stack */ #endif + +#if CONFIG_KERN_MONITOR + struct ProcMonitor + { + Node link; + const char* name; + cpustack_t* stack_base; + size_t stack_size; + } monitor; +#endif + } Process;