-BUILD_NUM = 210
+BUILD_NUM = 213
endif
-A_OBJ = start32.ao start64.ao desctab.ao
-A_OBJ += main.o lib.o proc.o mm_virt.o mm_phys.o vm8086.o
+A_OBJ := start32.ao start64.ao desctab.ao
+A_OBJ += main.o lib.o proc.o mm_virt.o mm_phys.o
A_OBJ += kernelpanic.o errors.o
+A_OBJ += vm8086.o
+# rme.o
POSTBUILD = objcopy $(BIN) -F elf32-i386 $(BIN)
#if LOCK_DISABLE_INTS
// Save interrupt state and clear interrupts
- __ASM__ ("pushf;\n\tpop %%eax\n\tcli" : "=a"(IF));
+ __ASM__ ("pushf;\n\tpop %0\n\tcli" : "=a"(IF));
IF &= 0x200; // AND out all but the interrupt flag
#endif
: "a"(0), "r"(thread), "r"(&Lock->Lock)
);
#else
- __ASM__("xchgl %%eax, (%%edi)":"=a"(v):"a"(1),"D"(&Lock->Lock));
+ __ASM__("xchgl %0, (%2)":"=a"(v):"a"(1),"D"(&Lock->Lock));
#endif
}
#include <acess.h>
#include <vm8086.h>
#include <modules.h>
+//#include "rme.h"
// === CONSTANTS ===
#define VM8086_STACK_SEG 0x9F00
// === GLOBALS ===
MODULE_DEFINE(0, 0x100, VM8086, VM8086_Install, NULL, NULL);
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
// === CODE ===
int VM8086_Install(char **Arguments)
{
+ //gpVM8086_State = RME_CreateState();
return MODULE_ERR_OK;
}
}
// Get Argument
- val = va_arg(args, Uint);
+ val = va_arg(args, unsigned int);
// - Padding Side Flag
if(c == '+') {
// - Minimum length
if(c == '*') { // Dynamic length
minSize = val;
- val = va_arg(args, Uint);
+ val = va_arg(args, unsigned int);
c = *__format++;
}
else if('1' <= c && c <= '9')