VirtualBox

Changeset 4542 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Sep 5, 2007 8:07:47 PM (17 years ago)
Author:
vboxsync
Message:

Some freebsd fixes.

Location:
trunk/src/VBox/Runtime
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r4474 r4542  
    373373        generic/RTFileMove-generic.cpp \
    374374        generic/RTLogWriteDebugger-generic.cpp \
     375        generic/RTTimeLocalNow-generic.cpp \
    375376        generic/RTTimerCreate-generic.cpp \
    376377        generic/pathhost-generic.cpp \
     
    703704        math/gcc/xordi3.c
    704705endif
    705        
    706        
     706
     707
    707708string/memchr.cpp_CXXFLAGS.win = -Oi-
    708709string/memcmp.cpp_CXXFLAGS.win = -Oi-
  • trunk/src/VBox/Runtime/r0drv/freebsd/the-freebsd-kernel.h

    r4049 r4542  
    5353#include <sys/sched.h>
    5454#include <sys/callout.h>
     55#include <sys/smp.h>
    5556#include <vm/vm.h>
    5657#include <vm/pmap.h>            /* for vtophys */
  • trunk/src/VBox/Runtime/r0drv/freebsd/timer-r0drv-freebsd.c

    r3977 r4542  
    103103        &&  (fFlags & RTTIMER_FLAGS_CPU_MASK) > mp_maxid)
    104104        return VERR_INVALID_PARAMETER;
    105    
     105
    106106    /*
    107107     * Allocate and initialize the timer handle.
     
    176176    pTimer->u64StartTS = u64First;
    177177    pTimer->u64NextTS = u64First;
    178    
     178
    179179    tv.tv_sec  =  u64First / 1000000000;
    180180    tv.tv_usec = (u64First % 1000000000) / 1000;
     
    206206 *
    207207 * This will perform the timer callback if we're on the right CPU.
    208  * 
     208 *
    209209 * @param   pvTimer The timer.
    210210 */
    211211static void rtTimerFreeBSDIpiAction(void *pvTimer)
    212212{
    213     PRTTIMER pTimer = (PRTTIMER)pvTimer; 
    214     if (    pTimer->iCpu == RTTIMER_FLAGS_CPU_ALL
     213    PRTTIMER pTimer = (PRTTIMER)pvTimer;
     214    if (    pTimer->iCpu == RTTIMER_FLAGS_CPU_MASK
    215215        ||  (u_int)pTimer->iCpu == curcpu)
    216216        pTimer->pfnTimer(pTimer, pTimer->pvUser);
     
    235235        if (pTimer->u64NextTS < u64NanoTS)
    236236            pTimer->u64NextTS = u64NanoTS + RTTimerGetSystemGranularity() / 2;
    237  
     237
    238238        tv.tv_sec = pTimer->u64NextTS / 1000000000;
    239239        tv.tv_usec = (pTimer->u64NextTS % 1000000000) / 1000;
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