VirtualBox

Ignore:
Timestamp:
Aug 11, 2015 2:39:19 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102031
Message:

iprt/r0drv/linux: Preserve EFLAGS/AC where ever it may possibly be thought to change when calling kernel code.

File:
1 edited

Legend:

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

    r54808 r57276  
    174174{
    175175    int rc;
     176    IPRT_LINUX_SAVE_EFL_AC();
    176177
    177178# ifdef CPU_DOWN_FAILED
     
    180181
    181182    rc = register_cpu_notifier(&g_NotifierBlock);
     183    IPRT_LINUX_RESTORE_EFL_AC();
    182184    AssertMsgReturn(!rc, ("%d\n", rc), RTErrConvertFromErrno(rc));
    183185    return VINF_SUCCESS;
     
    187189DECLHIDDEN(void) rtR0MpNotificationNativeTerm(void)
    188190{
     191    IPRT_LINUX_SAVE_EFL_AC();
    189192    unregister_cpu_notifier(&g_NotifierBlock);
     193    IPRT_LINUX_RESTORE_EFL_AC();
    190194}
    191195
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