2 * Acess2 Kernel (x86-64/amd64)
3 * - By John Hodge (thePowersGang)
6 * - Real-mode emulation (Stub until emulator is included)
14 #define VM8086_STACK_SEG 0x9F00
15 #define VM8086_STACK_OFS 0x0AFE
16 #define VM8086_PAGES_PER_INST 4
19 int VM8086_Install(char **Arguments);
20 //tVM8086 *VM8086_Init(void);
21 //void VM8086_Free(tVM8086 *State);
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
32 int VM8086_Install(char **Arguments)
34 //gpVM8086_State = RME_CreateState();
38 tVM8086 *VM8086_Init(void)
43 void VM8086_Free(tVM8086 *State)
48 void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset)
53 void *VM8086_GetPointer(tVM8086 *State, Uint16 Segment, Uint16 Offset)
58 void VM8086_Int(tVM8086 *State, Uint8 Interrupt)