1 --- src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c.orig 2018-10-15 14:31:31 UTC 2 +++ src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c 3 @@ -70,6 +70,8 @@ DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT 4 return VERR_INVALID_PARAMETER; 5 } 6 7 + IPRT_FREEBSD_SAVE_EFL_AC(); 8 + 9 #if __FreeBSD_version < 700000 10 /* Do like they're doing in subr_ntoskrnl.c... */ 11 mtx_lock_spin(&sched_lock); 12 @@ -86,6 +88,7 @@ DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT 13 thread_unlock(curthread); 14 #endif 15 16 + IPRT_FREEBSD_RESTORE_EFL_AC(); 17 return VINF_SUCCESS; 18 } 19 20 @@ -135,6 +138,7 @@ static void rtThreadNativeMain(void *pvThreadInt) 21 22 DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThreadInt, PRTNATIVETHREAD pNativeThread) 23 { 24 + IPRT_FREEBSD_SAVE_EFL_AC(); 25 int rc; 26 struct proc *pProc; 27 28 @@ -150,6 +154,7 @@ DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThr 29 } 30 else 31 rc = RTErrConvertFromErrno(rc); 32 + IPRT_FREEBSD_RESTORE_EFL_AC(); 33 return rc; 34 } 35 36