Module Name:    src
Committed By:   rin
Date:           Mon Oct  3 23:41:28 UTC 2022

Modified Files:
        src/sys/arch/powerpc/ibm4xx: copyinstr.c copyoutstr.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/powerpc/ibm4xx/copyinstr.c \
    src/sys/arch/powerpc/ibm4xx/copyoutstr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/powerpc/ibm4xx/copyinstr.c
diff -u src/sys/arch/powerpc/ibm4xx/copyinstr.c:1.17 src/sys/arch/powerpc/ibm4xx/copyinstr.c:1.18
--- src/sys/arch/powerpc/ibm4xx/copyinstr.c:1.17	Mon Oct  3 23:35:41 2022
+++ src/sys/arch/powerpc/ibm4xx/copyinstr.c	Mon Oct  3 23:41:28 2022
@@ -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 @@ copyinstr(const void *uaddr, void *kaddr
 
 		: [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)
Index: src/sys/arch/powerpc/ibm4xx/copyoutstr.c
diff -u src/sys/arch/powerpc/ibm4xx/copyoutstr.c:1.17 src/sys/arch/powerpc/ibm4xx/copyoutstr.c:1.18
--- src/sys/arch/powerpc/ibm4xx/copyoutstr.c:1.17	Mon Oct  3 23:35:41 2022
+++ src/sys/arch/powerpc/ibm4xx/copyoutstr.c	Mon Oct  3 23:41:28 2022
@@ -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 @@ copyoutstr(const void *kaddr, void *uadd
 
 		: [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)

Reply via email to