Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/powerpc/booke Fix inverted test. cpu_setmcontext s...



details:   https://anonhg.NetBSD.org/src/rev/55d34ecc2945
branches:  trunk
changeset: 761767:55d34ecc2945
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Feb 07 06:41:08 2011 +0000

description:
Fix inverted test.  cpu_setmcontext should return success. :)

diffstat:

 sys/arch/powerpc/booke/trap.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 0c8732dee3f4 -r 55d34ecc2945 sys/arch/powerpc/booke/trap.c
--- a/sys/arch/powerpc/booke/trap.c     Mon Feb 07 06:37:01 2011 +0000
+++ b/sys/arch/powerpc/booke/trap.c     Mon Feb 07 06:41:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.2 2011/01/18 01:02:52 matt Exp $    */
+/*     $NetBSD: trap.c,v 1.3 2011/02/07 06:41:08 matt Exp $    */
 /*-
  * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -39,7 +39,7 @@
 
 #include <sys/cdefs.h>
 
-__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.2 2011/01/18 01:02:52 matt Exp $");
+__KERNEL_RCSID(1, "$NetBSD: trap.c,v 1.3 2011/02/07 06:41:08 matt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -847,7 +847,7 @@
        struct lwp * const l = curlwp;
 
        int error = cpu_setmcontext(l, &uc->uc_mcontext, uc->uc_flags);
-       KASSERT(error);
+       KASSERT(error == 0);
        (void)error;
         kmem_free(uc, sizeof(ucontext_t)); 
        upcallret(l);



Home | Main Index | Thread Index | Old Index