projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kputchar(): New public function; Add missing dummy inlines for \!_DEBUG.
[bertos.git]
/
kern
/
proc_p.h
diff --git
a/kern/proc_p.h
b/kern/proc_p.h
index 5daf0dd0d47568c7c610c308fc7152a45faa5e24..4123e138240fbbbe6354c03ad6bcc18d9c4bf978 100755
(executable)
--- a/
kern/proc_p.h
+++ b/
kern/proc_p.h
@@
-1,8
+1,8
@@
/*!
* \file
* <!--
/*!
* \file
* <!--
- * Copyright 2001,2004 Develer S.r.l. (http://www.develer.com/)
- * Copyright 1999,
2000,
2001 Bernardo Innocenti <bernie@develer.com>
+ * Copyright 2001,
2004 Develer S.r.l. (http://www.develer.com/)
+ * Copyright 1999,
2000,
2001 Bernardo Innocenti <bernie@develer.com>
* This file is part of DevLib - See devlib/README for information.
* -->
*
* This file is part of DevLib - See devlib/README for information.
* -->
*
@@
-15,6
+15,12
@@
/*
* $Log$
/*
* $Log$
+ * Revision 1.6 2004/08/24 16:05:15 bernie
+ * Add missing headers; Reformat.
+ *
+ * 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.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
@@
-41,11
+47,11
@@
* Add multithreading kernel
*
*/
* Add multithreading kernel
*
*/
-
#ifndef KERN_PROC_P_H
#define KERN_PROC_P_H
#include "compiler.h"
#ifndef KERN_PROC_P_H
#define KERN_PROC_P_H
#include "compiler.h"
+#include "cpu.h" /* for cpu_stack_t */
#include "config.h"
#include "config_kern.h"
#include <mware/list.h>
#include "config.h"
#include "config_kern.h"
#include <mware/list.h>
@@
-54,6
+60,7
@@
typedef struct Process
{
Node link; /*!< Link Process into scheduler lists */
cpustack_t *stack; /*!< Per-process SP */
{
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 */
#if CONFIG_KERN_SIGNALS
sigset_t sig_wait; /*!< Signals the process is waiting for */
@@
-69,9
+76,10
@@
typedef struct Process
#if CONFIG_KERN_MONITOR
struct ProcMonitor
{
#if CONFIG_KERN_MONITOR
struct ProcMonitor
{
- Node link;
- cpustack_t* stack_base;
- size_t stack_size;
+ Node link;
+ const char *name;
+ cpustack_t *stack_base;
+ size_t stack_size;
} monitor;
#endif
} monitor;
#endif