/*#*
*#* $Log$
+ *#* Revision 1.21 2004/11/28 23:20:25 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
*#* Revision 1.20 2004/11/16 20:59:06 bernie
*#* Add watchdog timer support.
*#*
TIMER_STROBE_INIT;
#ifndef CONFIG_TIMER_DISABLE_EVENTS
- INITLIST(&timers_queue);
+ LIST_INIT(&timers_queue);
#endif
_clock = 0;
/*#*
*#* $Log$
+ *#* Revision 1.3 2004/11/28 23:20:25 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
*#* Revision 1.2 2004/10/26 09:01:15 bernie
*#* monitor_rename(): New function.
*#*
void monitor_init(void)
{
- INITLIST(&MonitorProcs);
+ LIST_INIT(&MonitorProcs);
}
/*#*
*#* $Log$
+ *#* Revision 1.5 2004/11/28 23:20:25 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
*#* Revision 1.4 2004/10/19 08:22:09 bernie
*#* msg_peek(): New function.
*#*
/*! Initialize a message port */
INLINE void msg_initPort(MsgPort* port, Event event)
{
- INITLIST(&port->queue);
+ LIST_INIT(&port->queue);
port->evn = event;
}
/*#*
*#* $Log$
+ *#* Revision 1.21 2004/11/28 23:20:25 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
*#* Revision 1.20 2004/11/16 22:37:14 bernie
*#* Replace IPTR with iptr_t.
*#*
void proc_init(void)
{
- INITLIST(&ProcReadyList);
+ LIST_INIT(&ProcReadyList);
#if CONFIG_KERN_MONITOR
monitor_init();
/*#*
*#* $Log$
+ *#* Revision 1.7 2004/11/28 23:20:25 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
*#* Revision 1.6 2004/10/21 10:57:21 bernie
*#* Use proc_forbid()/proc_permit().
*#*
*/
void sem_init(struct Semaphore *s)
{
- INITLIST(&s->wait_queue);
+ LIST_INIT(&s->wait_queue);
s->owner = NULL;
s->nest_count = 0;
}
/*#*
*#* $Log$
+ *#* Revision 1.10 2004/11/28 23:21:05 bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
*#* Revision 1.9 2004/10/21 09:37:55 bernie
*#* Revamp documentation.
*#*
#ifndef MWARE_LIST_H
#define MWARE_LIST_H
+#include <compiler.h> // INLINE
+
/*!
* This structure represents a node for bidirectional lists.
*
(l)->tail = (Node *)(&(l)->head); \
} while (0)
-/* OBSOLETE */
-#define INITLIST(l) LIST_INIT(l)
-
/*! Add node to list head. */
#define ADDHEAD(l,n) \
do { \
INLINE void name##_init(void (*init_func)(type*)) \
{ \
int i; \
- INITLIST(&name); \
+ LIST_INIT(&name); \
for (i=0;i<countof(name##_items);++i) \
{ \
if (init_func) init_func(&name##_items[i]); \