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

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