Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Oct 2008 04:46:02 +0000 (UTC)
From:      Kip Macy <kmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184248 - head/sys/i386/xen
Message-ID:  <200810250446.m9P4k2T9021627@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810250446.m9P4k2T9021627>