X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86%2Fvm8086.c;h=a1c75e2394fb8826d06f34bf9c590430fe27897f;hb=41769c02317835472d7678d3531ecfc23df8e17a;hp=469ab4361a8fac29a1af96d7be4c771e97258641;hpb=3b0cee8ca739fc5c564c78467fdc65c4d83d45a1;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86/vm8086.c b/Kernel/arch/x86/vm8086.c index 469ab436..a1c75e23 100644 --- a/Kernel/arch/x86/vm8086.c +++ b/Kernel/arch/x86/vm8086.c @@ -153,17 +153,14 @@ void VM8086_GPF(tRegs *Regs) //Log_Log("VM8086", "gpVM8086_State = %p, gVM8086_CallingThread = %i", // gpVM8086_State, gVM8086_CallingThread); if( gpVM8086_State ) { - int ret; gpVM8086_State->AX = Regs->eax; gpVM8086_State->CX = Regs->ecx; gpVM8086_State->DX = Regs->edx; gpVM8086_State->BX = Regs->ebx; gpVM8086_State->BP = Regs->ebp; gpVM8086_State->SI = Regs->esi; gpVM8086_State->DI = Regs->edi; gpVM8086_State->DS = Regs->ds; gpVM8086_State->ES = Regs->es; gpVM8086_State = NULL; - // Ensure the caller wakes - while( (ret = Threads_WakeTID(gVM8086_CallingThread)) == -EALREADY) { - Threads_Yield(); - } + // Wake the caller + Threads_WakeTID(gVM8086_CallingThread); } //Log_Log("VM8086", "Waiting for something to do");