Unborking some threading code
[tpg/acess2.git] / Kernel / arch / x86_64 / vm8086.c
1 /*
2  */
3 #include <acess.h>
4 #include <vm8086.h>
5 #include <modules.h>
6
7 // === CONSTANTS ===
8 #define VM8086_STACK_SEG        0x9F00
9 #define VM8086_STACK_OFS        0x0AFE
10 #define VM8086_PAGES_PER_INST   4
11
12 // === PROTOTYPES ===
13  int    VM8086_Install(char **Arguments);
14 tVM8086 *VM8086_Init(void);
15 void    VM8086_Free(tVM8086 *State);
16
17 // === GLOBALS ===
18 MODULE_DEFINE(0, 0x100, VM8086, VM8086_Install, NULL, NULL);
19 tMutex  glVM8086_Process;
20 tPID    gVM8086_WorkerPID;
21 tTID    gVM8086_CallingThread;
22 tVM8086 volatile * volatile gpVM8086_State = (void*)-1; // Set to -1 to avoid race conditions
23
24 // === CODE ===
25 int VM8086_Install(char **Arguments)
26 {
27         return MODULE_ERR_OK;
28 }
29
30 tVM8086 *VM8086_Init(void)
31 {
32         return NULL;
33 }
34
35 void VM8086_Free(tVM8086 *State)
36 {
37         
38 }
39
40 void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset)
41 {
42         return NULL;
43 }
44
45 void *VM8086_GetPointer(tVM8086 *State, Uint16 Segment, Uint16 Offset)
46 {
47         return NULL;
48 }
49
50 void VM8086_Int(tVM8086 *State, Uint8 Interrupt)
51 {
52         
53 }

UCC git Repository :: git.ucc.asn.au