VirtualBox

Ignore:
Timestamp:
Jul 22, 2009 12:13:22 PM (16 years ago)
Author:
vboxsync
Message:

thread-r0drv-linux.c: shot at the 2.4 additions build breaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c

    r21552 r21766  
    9999    c = g_acPreemptDisabled[smp_processor_id()];
    100100    AssertMsg(c >= 0 && c < 32, ("%d\n", c));
    101     return c == 0 && !in_atomic() && !irqs_disabled();
     101    if (c != 0)
     102        return false;
     103# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 32)
     104    if (in_atomic())
     105        return false;
     106# endif
     107# if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 5, 28)
     108    if (!irqs_disabled())
     109        return false;
     110# else
     111    if (!ASMIntAreEnabled())
     112        return false;
     113# endif
     114    return true;
    102115#endif
    103116}
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