VirtualBox

Ignore:
Timestamp:
May 25, 2022 7:02:46 AM (3 years ago)
Author:
vboxsync
Message:

SUPDrv-linux: bugref:10209 Use kernel_fpu_begin/end for Linux kernels 5.18 and newer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r95087 r95089  
    17331733{
    17341734    RT_NOREF(fCtxHook);
     1735#if RTLNX_VER_MIN(5,18,0)
     1736    kernel_fpu_begin();
     1737    /* if (fCtxHook) */
     1738        preempt_enable();  /* HACK ALERT! undo the implicit preempt_disable() in kernel_fpu_begin(). */
     1739    return true;
     1740#else
    17351741    return false;
     1742#endif
    17361743}
    17371744SUPR0_EXPORT_SYMBOL(SUPR0FpuBegin);
     
    17411748{
    17421749    RT_NOREF(fCtxHook);
     1750#if RTLNX_VER_MIN(5,18,0)
     1751    /* if (fCtxHook) */
     1752        preempt_disable();  /* HACK ALERT! undo the implicit preempt_enable() in SUPR0FpuBegin(). */
     1753    kernel_fpu_end();
     1754#endif
    17431755}
    17441756SUPR0_EXPORT_SYMBOL(SUPR0FpuEnd);
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