Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Deal with cr27 in process_{read, write}_regs



details:   https://anonhg.NetBSD.org/src/rev/f12060db2b1a
branches:  trunk
changeset: 762851:f12060db2b1a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 03 09:37:21 2011 +0000

description:
Deal with cr27 in process_{read,write}_regs

diffstat:

 sys/arch/hppa/hppa/process_machdep.c |  13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 8e80df01902d -r f12060db2b1a sys/arch/hppa/hppa/process_machdep.c
--- a/sys/arch/hppa/hppa/process_machdep.c      Thu Mar 03 08:10:45 2011 +0000
+++ b/sys/arch/hppa/hppa/process_machdep.c      Thu Mar 03 09:37:21 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: process_machdep.c,v 1.16 2011/01/14 02:06:26 rmind Exp $       */
+/*     $NetBSD: process_machdep.c,v 1.17 2011/03/03 09:37:21 skrll Exp $       */
 
 /*     $OpenBSD: process_machdep.c,v 1.3 1999/06/18 05:19:52 mickey Exp $      */
 
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.16 2011/01/14 02:06:26 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: process_machdep.c,v 1.17 2011/03/03 09:37:21 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -99,9 +99,9 @@
        regs->r_sr6 = tf->tf_sr6;
        regs->r_sr7 = tf->tf_sr7;
 
+       regs->r_cr27 = tf->tf_cr27;
 #if 0
-       regs->r_cr26      = tf->tf_xxx;
-       regs->r_cr27      = tf->tf_xxx;
+       regs->r_cr26 = tf->tf_cr26;
 #endif
 
        return 0;
@@ -168,6 +168,11 @@
        tf->tf_sr3 = regs->r_sr3;
        tf->tf_sr4 = regs->r_sr4;
 
+       tf->tf_cr27 = regs->r_cr27;
+#if 0
+       tf->tf_cr26 = regs->r_cr26;
+#endif
+
        return 0;
 }
 



Home | Main Index | Thread Index | Old Index