VirtualBox

Changeset 77128 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Feb 1, 2019 4:32:30 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128586
Message:

mp-r0drv-freebsd.cpp: Fix compliation on newer FreeBSD kernels where smp_no_rendezvous_barrier was renamed from smp_no_rendevous_barrier

File:
1 edited

Legend:

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

    r76553 r77128  
    3737#include "r0drv/mp-r0drv.h"
    3838
     39
     40#if __FreeBSD_version < 1200028
     41# define smp_no_rendezvous_barrier smp_no_rendevous_barrier
     42#endif
    3943
    4044RTDECL(RTCPUID) RTMpCpuId(void)
     
    156160    Args.idCpu = NIL_RTCPUID;
    157161    Args.cHits = 0;
    158     smp_rendezvous(NULL, rtmpOnAllFreeBSDWrapper, smp_no_rendevous_barrier, &Args);
     162    smp_rendezvous(NULL, rtmpOnAllFreeBSDWrapper, smp_no_rendezvous_barrier, &Args);
    159163    return VINF_SUCCESS;
    160164}
     
    195199#if __FreeBSD_version >= 700000
    196200# if __FreeBSD_version >= 900000
    197     Mask = all_cpus;
    198     CPU_CLR(curcpu, &Mask);
     201        Mask = all_cpus;
     202        CPU_CLR(curcpu, &Mask);
    199203# else
    200     Mask = ~(cpumask_t)curcpu;
     204        Mask = ~(cpumask_t)curcpu;
    201205# endif
    202         smp_rendezvous_cpus(Mask, NULL, rtmpOnOthersFreeBSDWrapper, smp_no_rendevous_barrier, &Args);
     206        smp_rendezvous_cpus(Mask, NULL, rtmpOnOthersFreeBSDWrapper, smp_no_rendezvous_barrier, &Args);
    203207#else
    204208        smp_rendezvous(NULL, rtmpOnOthersFreeBSDWrapper, NULL, &Args);
     
    251255    Mask = (cpumask_t)1 << idCpu;
    252256# endif
    253     smp_rendezvous_cpus(Mask, NULL, rtmpOnSpecificFreeBSDWrapper, smp_no_rendevous_barrier, &Args);
     257    smp_rendezvous_cpus(Mask, NULL, rtmpOnSpecificFreeBSDWrapper, smp_no_rendezvous_barrier, &Args);
    254258#else
    255259    smp_rendezvous(NULL, rtmpOnSpecificFreeBSDWrapper, NULL, &Args);
     
    289293    Mask = (cpumask_t)1 << idCpu;
    290294# endif
    291     smp_rendezvous_cpus(Mask, NULL, rtmpFreeBSDPokeCallback, smp_no_rendevous_barrier, NULL);
     295    smp_rendezvous_cpus(Mask, NULL, rtmpFreeBSDPokeCallback, smp_no_rendezvous_barrier, NULL);
    292296
    293297    return VINF_SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.

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