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

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