Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 79 → Rev 78

/shark/trunk/include/kernel/func.h
21,11 → 21,11
 
/**
------------
CVS : $Id: func.h,v 1.5 2003-03-13 13:36:27 pj Exp $
CVS : $Id: func.h,v 1.4 2003-01-30 09:59:59 pj Exp $
 
File: $File$
Revision: $Revision: 1.5 $
Last update: $Date: 2003-03-13 13:36:27 $
Revision: $Revision: 1.4 $
Last update: $Date: 2003-01-30 09:59:59 $
------------
 
Kernel functions:
89,10 → 89,6
/* 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... */
/*---------------------------------------------------------------------*/
631,5 → 627,4
if (ex) (*__cleanup_handler.f) (__cleanup_handler.a); \
}
 
__END_DECLS
#endif /* __FUNC_H__ */
/shark/trunk/include/kernel/model.h
21,11 → 21,11
 
/**
------------
CVS : $Id: model.h,v 1.3 2003-03-13 13:36:28 pj Exp $
CVS : $Id: model.h,v 1.2 2003-01-07 17:12:19 pj Exp $
 
File: $File$
Revision: $Revision: 1.3 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.2 $
Last update: $Date: 2003-01-07 17:12:19 $
------------
 
This file contains the definitions of the task and resource models.
56,10 → 56,7
 
#include "ll/ll.h"
#include "kernel/types.h"
#include "ll/sys/cdefs.h"
 
__BEGIN_DECLS
 
/* -----------------------------------------------------------------------
-----------------------------------------------------------------------
-----------------------------------------------------------------------
752,6 → 749,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.4 2003-03-13 13:36:27 pj Exp $
CVS : $Id: descr.h,v 1.3 2003-01-07 17:12:19 pj Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2003-03-13 13:36:27 $
Revision: $Revision: 1.3 $
Last update: $Date: 2003-01-07 17:12:19 $
------------
 
Kernel main data structures
72,10 → 72,7
#include <kernel/types.h>
#include <kernel/iqueue.h>
#include <limits.h>
#include "ll/sys/cdefs.h"
 
__BEGIN_DECLS
 
/*+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
CLEANUP HANDLER STRUCTURES
 
399,5 → 396,5
mutex_t *used_for_waiting;
} cond_t;
 
__END_DECLS
 
#endif /* __TYPE_H__ */
/shark/trunk/include/kernel/var.h
21,11 → 21,11
 
/**
------------
CVS : $Id: var.h,v 1.4 2003-03-13 13:36:28 pj Exp $
CVS : $Id: var.h,v 1.3 2003-01-07 17:12:19 pj Exp $
 
File: $File$
Revision: $Revision: 1.4 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.3 $
Last update: $Date: 2003-01-07 17:12:19 $
------------
 
Kernel global variables
57,10 → 57,7
#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 ... */
/*---------------------------------------------------------------------*/
126,5 → 123,4
different way when the system is in the
global_context +*/
 
__END_DECLS
#endif /* __VAR_H__ */
/shark/trunk/include/kernel/iqueue.h
18,11 → 18,11
 
/*
------------
CVS : $Id: iqueue.h,v 1.2 2003-03-13 13:36:28 pj Exp $
CVS : $Id: iqueue.h,v 1.1 2002-11-11 08:36:01 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.1 $
Last update: $Date: 2002-11-11 08:36:01 $
------------
 
*/
75,10 → 75,6
#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
 
198,5 → 194,4
return q->first == NIL;
}
 
__END_DECLS
#endif
/shark/trunk/include/kernel/int_sem.h
21,11 → 21,11
 
/**
------------
CVS : $Id: int_sem.h,v 1.3 2003-03-13 13:36:28 pj Exp $
CVS : $Id: int_sem.h,v 1.2 2002-11-11 08:36:01 pj Exp $
 
File: $File$
Revision: $Revision: 1.3 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.2 $
Last update: $Date: 2002-11-11 08:36:01 $
------------
 
Internal semaphores.
64,10 → 64,7
 
#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 {
91,5 → 88,4
/* 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/types.h
21,11 → 21,11
 
/**
------------
CVS : $Id: types.h,v 1.3 2003-03-13 13:36:28 pj Exp $
CVS : $Id: types.h,v 1.2 2002-11-11 08:36:01 pj Exp $
 
File: $File$
Revision: $Revision: 1.3 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.2 $
Last update: $Date: 2002-11-11 08:36:01 $
------------
 
**/
51,10 → 51,7
 
#ifndef __KERNEL_TYPES_H__
#define __KERNEL_TYPES_H__
#include "ll/sys/cdefs.h"
 
__BEGIN_DECLS
 
#define TASK void *
 
/*+ ... a task index +*/
72,5 → 69,5
/*+ keys for task specific data */
typedef int task_key_t;
 
__END_DECLS
 
#endif
/shark/trunk/include/kernel/kernmem.h
20,11 → 20,11
 
/**
------------
CVS : $Id: kernmem.h,v 1.2 2003-03-13 13:36:28 pj Exp $
CVS : $Id: kernmem.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:51 $
------------
**/
 
49,9 → 49,6
#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);
59,5 → 56,4
void kern_mem_init(void *base,DWORD size);
void kern_mem_dump(void);
 
__END_DECLS
#endif /* __KERNEL_KERNMEM_H__ */
/shark/trunk/include/kernel/mem.h
21,11 → 21,11
 
/**
------------
CVS : $Id: mem.h,v 1.2 2003-03-13 13:36:28 pj Exp $
CVS : $Id: mem.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:51 $
------------
 
- Memory Management functions
59,10 → 59,7
#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
97,5 → 94,5
/* statistical stuffs */
void kern_mem_dump(void);
 
__END_DECLS
 
#endif
/shark/trunk/include/kernel/trace.h
38,11 → 38,11
*/
 
/*
* CVS : $Id: trace.h,v 1.2 2003-03-13 13:36:28 pj Exp $
* CVS : $Id: trace.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
*
* File: $File$
* Revision: $Revision: 1.2 $
* Last update: $Date: 2003-03-13 13:36:28 $
* Revision: $Revision: 1.1.1.1 $
* Last update: $Date: 2002-03-29 14:12:51 $
*/
 
#ifndef __KERNEL_TRACE_H
50,9 → 50,6
 
#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));
61,6 → 58,5
 
extern int (*trc_resume)(void);
extern int (*trc_suspend)(void);
 
__END_DECLS
#endif
/shark/trunk/include/kernel/log.h
39,20 → 39,16
*/
 
/*
* CVS : $Id: log.h,v 1.2 2003-03-13 13:36:28 pj Exp $
* CVS : $Id: log.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
*
* File: log.h
* Revision: $Revision: 1.2 $
* Last update: $Date: 2003-03-13 13:36:28 $
* Revision: $Revision: 1.1.1.1 $
* Last update: $Date: 2002-03-29 14:12:51 $
*/
 
#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.
90,7 → 86,6
extern int printkboot(const char * fmt, ...)
__attribute__ ((format (printf, 1, 2)));
 
__END_DECLS
#endif
/shark/trunk/include/kernel/assert.h
39,20 → 39,16
*/
 
/*
* CVS : $Id: assert.h,v 1.2 2003-03-13 13:36:27 pj Exp $
* CVS : $Id: assert.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
*
* File: $File$
* Revision: $Revision: 1.2 $
* Last update: $Date: 2003-03-13 13:36:27 $
* Revision: $Revision: 1.1.1.1 $
* Last update: $Date: 2002-03-29 14:12:51 $
*/
 
#ifndef _KERNEL_ASSERT_H
#define _KERNEL_ASSERT_H
 
#include "ll/sys/cdefs.h"
 
__BEGIN_DECLS
 
/**/
 
#ifdef NDEBUG
97,5 → 93,5
#endif
 
/**/
__END_DECLS
 
#endif
/shark/trunk/include/kernel/lmm.h
21,11 → 21,11
 
/**
------------
CVS : $Id: lmm.h,v 1.2 2003-03-13 13:36:28 pj Exp $
CVS : $Id: lmm.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
 
File: $File$
Revision: $Revision: 1.2 $
Last update: $Date: 2003-03-13 13:36:28 $
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:51 $
------------
 
this code is from:
80,9 → 80,7
// 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;
 
163,5 → 161,4
assertk(reg->free <= reg->max - reg->min); \
}
 
__END_DECLS
#endif