Skip to content

Commit

Permalink
* Fix to broken win32 fix patch
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Sep 26, 2005
1 parent aff4d7d commit 1ad7f9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions code/qcommon/vm_x86.c
Expand Up @@ -79,8 +79,8 @@ int qftol0F7F( void );
static int ftolPtr = (int)qftol0F7F;
#endif // FTOL_PTR

void AsmCall( void );
static int asmCallPtr = (int)AsmCall;
void doAsmCall( void );
static int asmCallPtr = (int)doAsmCall;
#endif // !_WIN32


Expand Down Expand Up @@ -197,8 +197,11 @@ void callAsmCall(void)
currentVM = savedVM;
}

// Note the C space function AsmCall is never actually called, and is in fact
// arbitarily named (though this is not true for the MSC version). When a vm
// makes a system call, control jumps straight to the doAsmCall label.
void AsmCall( void ) {
asm( CMANG(AsmCall) ": \n\t" \
asm( CMANG(doAsmCall) ": \n\t" \
" movl (%%edi),%%eax \n\t" \
" subl $4,%%edi \n\t" \
" orl %%eax,%%eax \n\t" \
Expand Down

0 comments on commit 1ad7f9c

Please sign in to comment.