Author: kmacy
Date: Sat Oct 25 04:46:02 2008
New Revision: 184248
URL: http://svn.freebsd.org/changeset/base/184248

Log:
  handle case where eflags represents actual flags value when
  restoring interrupts

Modified:
  head/sys/i386/xen/xen_machdep.c

Modified: head/sys/i386/xen/xen_machdep.c
==============================================================================
--- head/sys/i386/xen/xen_machdep.c     Sat Oct 25 04:44:22 2008        
(r184247)
+++ head/sys/i386/xen/xen_machdep.c     Sat Oct 25 04:46:02 2008        
(r184248)
@@ -345,6 +345,8 @@ xen_load_cr3(u_int val)
 void
 xen_restore_flags(u_int eflags)
 {
+       if (eflags > 1)
+               eflags = ((eflags & PSL_I) == 0);
 
        __restore_flags(eflags);
 }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to