mirror of
https://github.com/UberGames/lilium-voyager.git
synced 2024-11-10 14:41:42 +00:00
* Fix to broken win32 fix patch
This commit is contained in:
parent
aff4d7d858
commit
1ad7f9cff1
1 changed files with 6 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
||||
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue