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 copy{in,out}str: Add cr0 and ctr to ...



details:   https://anonhg.NetBSD.org/src/rev/0f9c581b4eb3
branches:  trunk
changeset: 371727:0f9c581b4eb3
user:      rin <rin%NetBSD.org@localhost>
date:      Mon Oct 03 23:41:28 2022 +0000

description:
copy{in,out}str: Add cr0 and ctr to list of clobbered registers.

diffstat:

 sys/arch/powerpc/ibm4xx/copyinstr.c  |  7 ++++---
 sys/arch/powerpc/ibm4xx/copyoutstr.c |  7 ++++---
 2 files changed, 8 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r 5b8c56c9c429 -r 0f9c581b4eb3 sys/arch/powerpc/ibm4xx/copyinstr.c
--- a/sys/arch/powerpc/ibm4xx/copyinstr.c       Mon Oct 03 23:35:41 2022 +0000
+++ b/sys/arch/powerpc/ibm4xx/copyinstr.c       Mon Oct 03 23:41:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copyinstr.c,v 1.17 2022/10/03 23:35:41 rin Exp $       */
+/*     $NetBSD: copyinstr.c,v 1.18 2022/10/03 23:41:28 rin Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: copyinstr.c,v 1.17 2022/10/03 23:35:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: copyinstr.c,v 1.18 2022/10/03 23:41:28 rin Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -107,7 +107,8 @@
 
                : [msr] "=&r" (msr), [pid] "=&r" (pid), [data] "=&r" (data),
                  [resid] "+r" (resid)
-               : [ctx] "r" (ctx), [uaddr] "b" (uaddr), [kaddr] "b" (kaddr));
+               : [ctx] "r" (ctx), [uaddr] "b" (uaddr), [kaddr] "b" (kaddr)
+               : "cr0", "ctr");
 
        curpcb->pcb_onfault = NULL;
        if (done)
diff -r 5b8c56c9c429 -r 0f9c581b4eb3 sys/arch/powerpc/ibm4xx/copyoutstr.c
--- a/sys/arch/powerpc/ibm4xx/copyoutstr.c      Mon Oct 03 23:35:41 2022 +0000
+++ b/sys/arch/powerpc/ibm4xx/copyoutstr.c      Mon Oct 03 23:41:28 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copyoutstr.c,v 1.17 2022/10/03 23:35:41 rin Exp $      */
+/*     $NetBSD: copyoutstr.c,v 1.18 2022/10/03 23:41:28 rin Exp $      */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: copyoutstr.c,v 1.17 2022/10/03 23:35:41 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: copyoutstr.c,v 1.18 2022/10/03 23:41:28 rin Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -109,7 +109,8 @@
 
                : [msr] "=&r" (msr), [pid] "=&r" (pid), [data] "=&r" (data),
                  [resid] "+r" (resid)
-               : [ctx] "r" (ctx), [uaddr] "b" (uaddr), [kaddr] "b" (kaddr));
+               : [ctx] "r" (ctx), [uaddr] "b" (uaddr), [kaddr] "b" (kaddr)
+               : "cr0", "ctr");
 
        curpcb->pcb_onfault = NULL;
        if (done)



Home | Main Index | Thread Index | Old Index