VirtualBox

Changeset 7517 in vbox for trunk/src/VBox/Runtime/r0drv


Ignore:
Timestamp:
Mar 22, 2008 11:15:44 PM (17 years ago)
Author:
vboxsync
Message:

Additions/FreeBSD: initial commit

Mostly tested on FreeBSD 7.0.

Working: the additions kernel module

VBoxService (working on FreeBSD 6.2 too)
vboxvideo

Partially working: vboxmouse - 100% CPU usage and clicking does not work yet
Not tested: xclient
TODO: shared folder module is currently a stub

Installer and startup scripts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/freebsd/thread2-r0drv-freebsd.c

    r3680 r7517  
    7070    }
    7171
     72#if __FreeBSD_version < 700000
    7273    /* Do like they're doing in subr_ntoskrnl.c... */
    7374    mtx_lock_spin(&sched_lock);
     75#else
     76    thread_lock(curthread);
     77#endif
    7478    sched_prio(curthread, iPriority);
    7579#if __FreeBSD_version < 600000
    7680    curthread->td_base_pri = iPriority;
    7781#endif
     82#if __FreeBSD_version < 700000
    7883    mtx_unlock_spin(&sched_lock);
     84#else
     85    thread_unlock(curthread);
     86#endif
    7987
    8088    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette