--- np2/i386c/ia32/instructions/flag_ctrl.c 2004/03/12 13:31:20 1.8 +++ np2/i386c/ia32/instructions/flag_ctrl.c 2005/03/12 12:33:47 1.10 @@ -1,4 +1,4 @@ -/* $Id: flag_ctrl.c,v 1.8 2004/03/12 13:31:20 monaka Exp $ */ +/* $Id: flag_ctrl.c,v 1.10 2005/03/12 12:33:47 monaka Exp $ */ /* * Copyright (c) 2003 NONAKA Kimihiro @@ -12,8 +12,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -154,6 +152,9 @@ POPF_Fw(void) } else { /* IOPL < 3 */ EXCEPTION(GP_EXCEPTION, 0); + flags = 0; + mask = 0; + /* compiler happy */ } } CPU_FLAG = (flags & mask) | (CPU_FLAG & ~mask); @@ -219,6 +220,9 @@ POPFD_Fd(void) } else { /* IOPL < 3 */ EXCEPTION(GP_EXCEPTION, 0); + flags = 0; + mask = 0; + /* compiler happy */ } } CPU_EFLAG = (flags & mask) | (CPU_EFLAG & ~mask);