diff options
Diffstat (limited to 'emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c')
-rw-r--r-- | emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c b/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c new file mode 100644 index 000000000000..c7c56d5814ee --- /dev/null +++ b/emulators/virtualbox-ose-kmod/files/patch-src-VBox-Runtime-r0drv-freebsd-spinlock-r0drv-freebsd.c @@ -0,0 +1,14 @@ +Index: src/VBox/Runtime/r0drv/freebsd/spinlock-r0drv-freebsd.c +@@ -171,7 +171,12 @@ RTDECL(void) RTSpinlockAcquire(RTSPINLOC + AssertPtr(pThis); + Assert(pThis->u32Magic == RTSPINLOCK_MAGIC); + #ifdef RT_STRICT ++#if 0 ++ /* This can't work because at least RTPowerNotificationRegister calls ++ * RTSpinlockAcquire with *pTmp allocated on the stack. ++ */ + Assert(pTmp->uFlags == 0); ++#endif + pTmp->uFlags = 42; + #endif + |