From: John Hodge Date: Thu, 27 May 2010 05:57:40 +0000 (+0800) Subject: VM8086 stub for x86_64 build X-Git-Tag: rel0.06~178 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=ebaeb7ad41f633762d26f759852498fcb7d3dfea;p=tpg%2Facess2.git VM8086 stub for x86_64 build --- diff --git a/Kernel/arch/x86_64/vm8086.c b/Kernel/arch/x86_64/vm8086.c new file mode 100644 index 00000000..0feb79e9 --- /dev/null +++ b/Kernel/arch/x86_64/vm8086.c @@ -0,0 +1,53 @@ +/* + */ +#include +#include +#include + +// === CONSTANTS === +#define VM8086_STACK_SEG 0x9F00 +#define VM8086_STACK_OFS 0x0AFE +#define VM8086_PAGES_PER_INST 4 + +// === PROTOTYPES === + int VM8086_Install(char **Arguments); +tVM8086 *VM8086_Init(void); +void VM8086_Free(tVM8086 *State); + +// === GLOBALS === +MODULE_DEFINE(0, 0x100, VM8086, VM8086_Install, NULL, NULL); +tSpinlock glVM8086_Process; +tPID gVM8086_WorkerPID; +tTID gVM8086_CallingThread; +tVM8086 volatile * volatile gpVM8086_State = (void*)-1; // Set to -1 to avoid race conditions + +// === CODE === +int VM8086_Install(char **Arguments) +{ + return MODULE_ERR_OK; +} + +tVM8086 *VM8086_Init(void) +{ + return NULL; +} + +void VM8086_Free(tVM8086 *State) +{ + +} + +void *VM8086_Allocate(tVM8086 *State, int Size, Uint16 *Segment, Uint16 *Offset) +{ + +} + +void *VM8086_GetPointer(tVM8086 *State, Uint16 Segment, Uint16 Offset) +{ + +} + +void VM8086_Int(tVM8086 *State, Uint8 Interrupt) +{ + +}