X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=kern%2Fproc_p.h;h=79e97b9230cbe16bd7b9cbbfafc38622cb1e1f34;hb=ea4ef51b306fde6480c03f72e81c4b31d51660f6;hp=812131bd13ac54328104def099ddd64dfd9275d9;hpb=a784017154df4320114e044c4b7eda76ea0a2a9a;p=bertos.git diff --git a/kern/proc_p.h b/kern/proc_p.h index 812131bd..79e97b92 100755 --- a/kern/proc_p.h +++ b/kern/proc_p.h @@ -15,6 +15,13 @@ /* * $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 * @@ -46,11 +53,11 @@ #include "config_kern.h" #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 */ @@ -62,6 +69,17 @@ typedef struct Process 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;