X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86_64%2Fvm8086.c;h=42515705647f6d544c24e307adad55d68b515b76;hb=5255c9f07cb2e0e43cf283e256c964eaa7970c8e;hp=0feb79e9f0505b21c9c5e1492a09c2dd9c96f2a9;hpb=ebaeb7ad41f633762d26f759852498fcb7d3dfea;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86_64/vm8086.c b/Kernel/arch/x86_64/vm8086.c index 0feb79e9..42515705 100644 --- a/Kernel/arch/x86_64/vm8086.c +++ b/Kernel/arch/x86_64/vm8086.c @@ -3,6 +3,7 @@ #include #include #include +//#include "rme.h" // === CONSTANTS === #define VM8086_STACK_SEG 0x9F00 @@ -11,12 +12,13 @@ // === PROTOTYPES === int VM8086_Install(char **Arguments); -tVM8086 *VM8086_Init(void); -void VM8086_Free(tVM8086 *State); +//tVM8086 *VM8086_Init(void); +//void VM8086_Free(tVM8086 *State); // === GLOBALS === MODULE_DEFINE(0, 0x100, VM8086, VM8086_Install, NULL, NULL); -tSpinlock glVM8086_Process; +tMutex glVM8086_Process; +//tRME_State *gpVM8086_State; tPID gVM8086_WorkerPID; tTID gVM8086_CallingThread; tVM8086 volatile * volatile gpVM8086_State = (void*)-1; // Set to -1 to avoid race conditions @@ -24,6 +26,7 @@ tVM8086 volatile * volatile gpVM8086_State = (void*)-1; // Set to -1 to avoid ra // === CODE === int VM8086_Install(char **Arguments) { + //gpVM8086_State = RME_CreateState(); return MODULE_ERR_OK; } @@ -39,12 +42,12 @@ void VM8086_Free(tVM8086 *State) void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset) { - + return NULL; } void *VM8086_GetPointer(tVM8086 *State, Uint16 Segment, Uint16 Offset) { - + return NULL; } void VM8086_Int(tVM8086 *State, Uint8 Interrupt)