Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/usermode/usermode Fix error flag (carry) setting if...
details: https://anonhg.NetBSD.org/src/rev/cf15ecd2d3ac
branches: trunk
changeset: 771993:cf15ecd2d3ac
user: reinoud <reinoud%NetBSD.org@localhost>
date: Mon Dec 12 19:57:12 2011 +0000
description:
Fix error flag (carry) setting if its a pseudo error of EJUSTRETURN etc. Just
in case.
diffstat:
sys/arch/usermode/usermode/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (35 lines):
diff -r 02cc9fa43bb9 -r cf15ecd2d3ac sys/arch/usermode/usermode/machdep.c
--- a/sys/arch/usermode/usermode/machdep.c Mon Dec 12 19:11:21 2011 +0000
+++ b/sys/arch/usermode/usermode/machdep.c Mon Dec 12 19:57:12 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.33 2011/11/27 21:38:17 reinoud Exp $ */
+/* $NetBSD: machdep.c,v 1.34 2011/12/12 19:57:12 reinoud Exp $ */
/*-
* Copyright (c) 2011 Reinoud Zandijk <reinoud%netbsd.org@localhost>
@@ -32,7 +32,7 @@
#include "opt_urkelvisor.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.33 2011/11/27 21:38:17 reinoud Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.34 2011/12/12 19:57:12 reinoud Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -250,14 +250,14 @@
register_t *reg = (register_t *) &ucp->uc_mcontext;
reg[16] &= ~PSL_C; /* EFL */
- if (error) {
+ if (error > 0) {
rval[0] = error;
reg[16] |= PSL_C; /* EFL */
}
/* set return parameters */
reg[11] = rval[0]; /* EAX */
- if (!error)
+ if (error == 0)
reg[ 9] = rval[1]; /* EDX */
//dump_regs(reg);
Home |
Main Index |
Thread Index |
Old Index