Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/powerpc/ibm4xx Return error code from uvm layer on ...



details:   https://anonhg.NetBSD.org/src/rev/e65c285f79d6
branches:  trunk
changeset: 1011114:e65c285f79d6
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Jun 19 07:19:19 2020 +0000

description:
Return error code from uvm layer on fault, instead of hard-coded 1.
Found by some tests in tests/lib/libc/sys.

diffstat:

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

diffs (27 lines):

diff -r 4bb6483630bf -r e65c285f79d6 sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c    Fri Jun 19 07:15:21 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c    Fri Jun 19 07:19:19 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.78 2020/02/21 15:15:48 rin Exp $    */
+/*     $NetBSD: trap.c,v 1.79 2020/06/19 07:19:19 rin Exp $    */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.78 2020/02/21 15:15:48 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.79 2020/06/19 07:19:19 rin Exp $");
 
 #include "opt_altivec.h"
 #include "opt_ddb.h"
@@ -221,7 +221,7 @@
                                tf->tf_cr = fb->fb_cr;
                                tf->tf_fixreg[1] = fb->fb_sp;
                                tf->tf_fixreg[2] = fb->fb_r2;
-                               tf->tf_fixreg[3] = 1; /* Return TRUE */
+                               tf->tf_fixreg[3] = rv;
                                memcpy(&tf->tf_fixreg[13], fb->fb_fixreg,
                                    sizeof(fb->fb_fixreg));
                                return;



Home | Main Index | Thread Index | Old Index