osx fixes
This commit is contained in:
parent
caa947dcec
commit
98a2d554b5
@ -319,6 +319,7 @@ void native_isr_entry(int sig, siginfo_t *info, void *context)
|
|||||||
if (_native_in_syscall == 0) {
|
if (_native_in_syscall == 0) {
|
||||||
DEBUG("\n\n\t\treturn to _native_sig_leave_tramp\n\n");
|
DEBUG("\n\n\t\treturn to _native_sig_leave_tramp\n\n");
|
||||||
#ifdef __MACH__
|
#ifdef __MACH__
|
||||||
|
isr_set_sigmask((ucontext_t *)context);
|
||||||
_native_in_isr = 1;
|
_native_in_isr = 1;
|
||||||
_native_saved_eip = ((ucontext_t *)context)->uc_mcontext->__ss.__eip;
|
_native_saved_eip = ((ucontext_t *)context)->uc_mcontext->__ss.__eip;
|
||||||
((ucontext_t *)context)->uc_mcontext->__ss.__eip = (unsigned int)&_native_sig_leave_tramp;
|
((ucontext_t *)context)->uc_mcontext->__ss.__eip = (unsigned int)&_native_sig_leave_tramp;
|
||||||
|
|||||||
@ -11,6 +11,8 @@ __native_sig_leave_tramp:
|
|||||||
call _swapcontext
|
call _swapcontext
|
||||||
addl $8, %esp
|
addl $8, %esp
|
||||||
|
|
||||||
|
call _eINT
|
||||||
|
|
||||||
movl $0x0, __native_in_isr
|
movl $0x0, __native_in_isr
|
||||||
popa
|
popa
|
||||||
popf
|
popf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user