From ebaeb7ad41f633762d26f759852498fcb7d3dfea Mon Sep 17 00:00:00 2001 From: John Hodge Date: Thu, 27 May 2010 13:57:40 +0800 Subject: [PATCH] VM8086 stub for x86_64 build --- Kernel/arch/x86_64/vm8086.c | 53 +++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Kernel/arch/x86_64/vm8086.c 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) +{ + +} -- 2.20.1