// Set Image Name
Threads_SetName("VM8086");
- Log_Debug("VM8086", "Mapping memory");
+// Log_Debug("VM8086", "Mapping memory");
// Map ROM Area
for(i=0xA0;i<0x100;i++) {
MM_Map( i * 0x1000, i * 0x1000 );
}
- Log_Debug("VM8086", "ROM area mapped");
+// Log_Debug("VM8086", "ROM area mapped");
MM_Map( 0, 0 ); // IVT / BDA
// Map (but allow allocation) of 0x1000 - 0x9F000
// - So much hack, it isn't funny
gVM8086_WorkerPID = 0;
Threads_Exit(0, 1);
}
- Log_Debug("VM8086", "Mapped low memory");
+// Log_Debug("VM8086", "Mapped low memory");
*(Uint8*)(0x100000) = VM8086_OP_IRET;
*(Uint8*)(0x100001) = 0x07; // POP ES
}
gVM8086_WorkerPID = pid;
- Log_Log("VM8086", "gVM8086_WorkerPID = %i", pid);
+// Log_Log("VM8086", "gVM8086_WorkerPID = %i", pid);
while( gpVM8086_State != NULL )
Threads_Yield(); // Yield to allow the child to initialise
&& Threads_GetPID() == gVM8086_WorkerPID)
{
if( gpVM8086_State == (void*)-1 ) {
- Log_Log("VM8086", "Worker thread ready and waiting");
+// Log_Log("VM8086", "Worker thread ready and waiting");
gpVM8086_State = NULL;
Mutex_Release( &glVM8086_Process ); // Release lock obtained in VM8086_Install
}
argc ++; // Count last argument
// --- Parse Arguments (Pass 1) ---
- for( i = 0; i < argc; i++ )
+ for( i = 1; i < argc; i++ )
{
switch(argv[i][0])
{
void System_ExecuteCommandLine(void)
{
int i;
- for( i = 0; i < argc; i++ )
+ if(argc > 0)
+ LOG("Invocation '%s'", argv[0]);
+ for( i = 1; i < argc; i++ )
{
LOG("argv[%i] = '%s'", i, argv[i]);
switch(argv[i][0])