diff options
author | Bernhard Froehlich <decke@FreeBSD.org> | 2011-03-18 13:31:05 +0000 |
---|---|---|
committer | Bernhard Froehlich <decke@FreeBSD.org> | 2011-03-18 13:31:05 +0000 |
commit | ea0fb1e52421829ace34e0f8b103edc6506d96fc (patch) | |
tree | 92d871fd2df50638960c2ac0a8f3253bf37c7810 /emulators | |
parent | 5f77a58e4a7cfbfc392340931a1c162dd287a7aa (diff) |
- Fix build on current after removal of uio_yield()
Submitted by: Michael Butler <imb@protected-networks.net>
Reported by: pointyhat (via pav)
Notes
Notes:
svn path=/head/; revision=271248
Diffstat (limited to 'emulators')
-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 ... */ + } + |