/shark/trunk/include/kernel/func.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: func.h,v 1.4 2003-01-30 09:59:59 pj Exp $ |
CVS : $Id: func.h,v 1.5 2003-03-13 13:36:27 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.4 $ |
Last update: $Date: 2003-01-30 09:59:59 $ |
Revision: $Revision: 1.5 $ |
Last update: $Date: 2003-03-13 13:36:27 $ |
------------ |
Kernel functions: |
89,6 → 89,10 |
/* if a source use printk() it should include log.h not func.h */ |
#include <kernel/log.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*---------------------------------------------------------------------*/ |
/* Kernel global functions: initialization & termination... */ |
/*---------------------------------------------------------------------*/ |
627,4 → 631,5 |
if (ex) (*__cleanup_handler.f) (__cleanup_handler.a); \ |
} |
__END_DECLS |
#endif /* __FUNC_H__ */ |
/shark/trunk/include/kernel/iqueue.h |
---|
18,11 → 18,11 |
/* |
------------ |
CVS : $Id: iqueue.h,v 1.1 2002-11-11 08:36:01 pj Exp $ |
CVS : $Id: iqueue.h,v 1.2 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1 $ |
Last update: $Date: 2002-11-11 08:36:01 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
*/ |
75,6 → 75,10 |
#ifndef __KERNEL_IQUEUE_H__ |
#define __KERNEL_IQUEUE_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define IQUEUE_NO_PRIORITY 1 |
#define IQUEUE_NO_TIMESPEC 2 |
194,4 → 198,5 |
return q->first == NIL; |
} |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/trace.h |
---|
38,11 → 38,11 |
*/ |
/* |
* CVS : $Id: trace.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: trace.h,v 1.2 2003-03-13 13:36:28 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:36:28 $ |
*/ |
#ifndef __KERNEL_TRACE_H |
50,7 → 50,10 |
#include <ll/sys/types.h> |
#include <trace/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
extern int (*trc_register_eventclass) |
(int class,int num,int(*func)(trc_event_t *, int event, void *ptr)); |
59,4 → 62,5 |
extern int (*trc_resume)(void); |
extern int (*trc_suspend)(void); |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/kernmem.h |
---|
20,11 → 20,11 |
/** |
------------ |
CVS : $Id: kernmem.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: kernmem.h,v 1.2 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
**/ |
49,6 → 49,9 |
#ifndef __KERNEL_KERNMEM_H_ |
#define __KERNEL_KERNMEM_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* These function are used to manage memory at VM layer */ |
void * kern_alloc(DWORD size); |
56,4 → 59,5 |
void kern_mem_init(void *base,DWORD size); |
void kern_mem_dump(void); |
__END_DECLS |
#endif /* __KERNEL_KERNMEM_H__ */ |
/shark/trunk/include/kernel/int_sem.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: int_sem.h,v 1.2 2002-11-11 08:36:01 pj Exp $ |
CVS : $Id: int_sem.h,v 1.3 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2002-11-11 08:36:01 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
Internal semaphores. |
64,7 → 64,10 |
#include <kernel/types.h> |
#include <kernel/iqueue.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* this is the structure normally pointed by the opt field in the |
mutex_t structure */ |
typedef struct { |
88,4 → 91,5 |
/* getvalue (>= 0 if there is noone blocked on it, -1 otherwise) */ |
int internal_sem_getvalue(internal_sem_t *s); |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/model.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: model.h,v 1.2 2003-01-07 17:12:19 pj Exp $ |
CVS : $Id: model.h,v 1.3 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-01-07 17:12:19 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
This file contains the definitions of the task and resource models. |
56,7 → 56,10 |
#include "ll/ll.h" |
#include "kernel/types.h" |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* ----------------------------------------------------------------------- |
----------------------------------------------------------------------- |
----------------------------------------------------------------------- |
749,6 → 752,6 |
#define NOPM_MUTEXATTR_INITIALIZER {NOPM_MCLASS} |
#define NOPM_mutexattr_default(a) mutexattr_default(a, NOPM_MCLASS) |
__END_DECLS |
#endif /* __MODEL_H__ */ |
/shark/trunk/include/kernel/descr.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: descr.h,v 1.3 2003-01-07 17:12:19 pj Exp $ |
CVS : $Id: descr.h,v 1.4 2003-03-13 13:36:27 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-01-07 17:12:19 $ |
Revision: $Revision: 1.4 $ |
Last update: $Date: 2003-03-13 13:36:27 $ |
------------ |
Kernel main data structures |
72,7 → 72,10 |
#include <kernel/types.h> |
#include <kernel/iqueue.h> |
#include <limits.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
CLEANUP HANDLER STRUCTURES |
396,5 → 399,5 |
mutex_t *used_for_waiting; |
} cond_t; |
__END_DECLS |
#endif /* __TYPE_H__ */ |
/shark/trunk/include/kernel/assert.h |
---|
39,16 → 39,20 |
*/ |
/* |
* CVS : $Id: assert.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: assert.h,v 1.2 2003-03-13 13:36:27 pj Exp $ |
* |
* File: $File$ |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:36:27 $ |
*/ |
#ifndef _KERNEL_ASSERT_H |
#define _KERNEL_ASSERT_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/**/ |
#ifdef NDEBUG |
93,5 → 97,5 |
#endif |
/**/ |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/types.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: types.h,v 1.2 2002-11-11 08:36:01 pj Exp $ |
CVS : $Id: types.h,v 1.3 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2002-11-11 08:36:01 $ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
**/ |
51,7 → 51,10 |
#ifndef __KERNEL_TYPES_H__ |
#define __KERNEL_TYPES_H__ |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
#define TASK void * |
/*+ ... a task index +*/ |
69,5 → 72,5 |
/*+ keys for task specific data */ |
typedef int task_key_t; |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/mem.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: mem.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: mem.h,v 1.2 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
- Memory Management functions |
59,7 → 59,10 |
#define __KERNEL_MEM_H__ |
#include <kernel/lmm.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/* Memory regions to be passed as flags... */ |
#define MEMORY_UNDER_1M 1 |
#define MEMORY_FROM_1M_TO_16M 2 |
94,5 → 97,5 |
/* statistical stuffs */ |
void kern_mem_dump(void); |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/log.h |
---|
39,16 → 39,20 |
*/ |
/* |
* CVS : $Id: log.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
* CVS : $Id: log.h,v 1.2 2003-03-13 13:36:28 pj Exp $ |
* |
* File: log.h |
* Revision: $Revision: 1.1.1.1 $ |
* Last update: $Date: 2002-03-29 14:12:51 $ |
* Revision: $Revision: 1.2 $ |
* Last update: $Date: 2003-03-13 13:36:28 $ |
*/ |
#ifndef __KERNEL_LOG_H |
#define __KERNEL_LOG_H |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*+ |
The following values are used for the first parameter |
of the printk() and printkboot() functions. |
86,6 → 90,7 |
extern int printkboot(const char * fmt, ...) |
__attribute__ ((format (printf, 1, 2))); |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/lmm.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: lmm.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $ |
CVS : $Id: lmm.h,v 1.2 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.1.1.1 $ |
Last update: $Date: 2002-03-29 14:12:51 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
this code is from: |
80,7 → 80,9 |
// this part was oskit/lmm.h |
#include <sys/types.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
typedef DWORD lmm_flags_t; |
typedef int lmm_pri_t; |
161,4 → 163,5 |
assertk(reg->free <= reg->max - reg->min); \ |
} |
__END_DECLS |
#endif |
/shark/trunk/include/kernel/var.h |
---|
21,11 → 21,11 |
/** |
------------ |
CVS : $Id: var.h,v 1.3 2003-01-07 17:12:19 pj Exp $ |
CVS : $Id: var.h,v 1.4 2003-03-13 13:36:28 pj Exp $ |
File: $File$ |
Revision: $Revision: 1.3 $ |
Last update: $Date: 2003-01-07 17:12:19 $ |
Revision: $Revision: 1.4 $ |
Last update: $Date: 2003-03-13 13:36:28 $ |
------------ |
Kernel global variables |
57,7 → 57,10 |
#include <ll/ll.h> |
#include <sys/types.h> |
#include <kernel/descr.h> |
#include "ll/sys/cdefs.h" |
__BEGIN_DECLS |
/*---------------------------------------------------------------------*/ |
/* Kernel global variables: system queues & clock counters ... */ |
/*---------------------------------------------------------------------*/ |
123,4 → 126,5 |
different way when the system is in the |
global_context +*/ |
__END_DECLS |
#endif /* __VAR_H__ */ |