diff options
-rw-r--r-- | emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c b/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c new file mode 100644 index 000000000000..e379ac172b4a --- /dev/null +++ b/emulators/virtualbox-ose-additions/files/patch-src-VBox-Runtime-r0drv-freebsd-thread-r0drv-freebsd.c @@ -0,0 +1,16 @@ +*** ./src/VBox/Runtime/r0drv/freebsd/thread-r0drv-freebsd.c~ Wed Dec 1 12:09:43 2010 +--- ./src/VBox/Runtime/r0drv/freebsd/thread-r0drv-freebsd.c Wed Feb 9 13:44:28 2011 +*************** +*** 101,107 **** +--- 101,111 ---- + + RTDECL(bool) RTThreadYield(void) + { ++ #if (__FreeBSD_version >= 900032) ++ kern_yield(curthread->td_user_pri); ++ #else + uio_yield(); ++ #endif + return false; /** @todo figure this one ... */ + } + |