Subversion Repositories shark

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/* Project:     OSLib
2
 * Description: The OS Construction Kit
3
 * Date:                1.6.2000
4
 * Idea by:             Luca Abeni & Gerardo Lamastra
5
 *
6
 * OSLib is an SO project aimed at developing a common, easy-to-use
7
 * low-level infrastructure for developing OS kernels and Embedded
8
 * Applications; it partially derives from the HARTIK project but it
9
 * currently is independently developed.
10
 *
11
 * OSLib is distributed under GPL License, and some of its code has
12
 * been derived from the Linux kernel source; also some important
13
 * ideas come from studying the DJGPP go32 extender.
14
 *
15
 * We acknowledge the Linux Community, Free Software Foundation,
16
 * D.J. Delorie and all the other developers who believe in the
17
 * freedom of software and ideas.
18
 *
19
 * For legalese, check out the included GPL license.
20
 */
21
 
22
/*      Kernel Library functions interfaces     */
23
 
24
#ifndef __LL_SYS_LL_LL_FUNC_H_
25
#define __LL_SYS_LL_LL_FUNC_H_
26
 
27
#include <ll/i386/defs.h>
28
BEGIN_DEF
29
 
30
#include <ll/i386/hw-data.h>
31
#include <ll/i386/hw-instr.h>
32
#include <ll/i386/hw-func.h>
33
 
34
#include <ll/sys/ll/ll-data.h>
35
 
36
void ll_context_setspace(CONTEXT c, WORD as);
37
CONTEXT ll_context_create(void (*task)(void *p),BYTE *stack,
38
                                void *parm,void (*killer)(void),WORD ctrl);
39
 
40
/* Release a used task context                                            */
41
void ll_context_delete(CONTEXT c);
42
 
43
/* Put the context value into human readable form; used for debug! */
44
char *ll_context_sprintf(char *str,CONTEXT c);
45
 
46
/* These functions start-up & close the ll layer */
47
 
48
void *ll_init(void);
49
void ll_end(void);
50
 
51
/* This functions acts as safety place where to go when any error */
52
/* occurs and we do not know what context is active               */
53
void ll_abort(int code);
54
 
55
BEGIN_DEF
56
#endif /* __LL_SYS_LL_LL_MEM_H_ */