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 Cosmetic changes. No binary changes.



details:   https://anonhg.NetBSD.org/src/rev/faf4c9029099
branches:  trunk
changeset: 969897:faf4c9029099
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Mar 05 01:15:35 2020 +0000

description:
Cosmetic changes. No binary changes.

diffstat:

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

diffs (60 lines):

diff -r c286b8879f69 -r faf4c9029099 sys/arch/powerpc/ibm4xx/copyinstr.c
--- a/sys/arch/powerpc/ibm4xx/copyinstr.c       Thu Mar 05 01:13:00 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/copyinstr.c       Thu Mar 05 01:15:35 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copyinstr.c,v 1.12 2020/03/05 01:13:00 rin Exp $       */
+/*     $NetBSD: copyinstr.c,v 1.13 2020/03/05 01:15:35 rin Exp $       */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: copyinstr.c,v 1.12 2020/03/05 01:13:00 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: copyinstr.c,v 1.13 2020/03/05 01:15:35 rin Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -82,12 +82,13 @@
                "mtpid %4; sync;"               /* Load user ctx */
                "lbz %2,0(%5); addi %5,%5,1;"   /* Load byte */
                "sync; isync;"
-               "mtpid %1;sync;"
+               "mtpid %1; sync;"
                "stb %2,0(%6); dcbst 0,%6; addi %6,%6,1;"
                                                /* Store kernel byte */
                "sync; isync;"
                "or. %2,%2,%2;"
                "bdnzf 2,1b;"                   /* while(ctr-- && !zero) */
+
                "mtpid %1; mtmsr %0;"           /* Restore PID, MSR */
                "sync; isync;"
                "mfctr %3;"                     /* Restore resid */
diff -r c286b8879f69 -r faf4c9029099 sys/arch/powerpc/ibm4xx/copyoutstr.c
--- a/sys/arch/powerpc/ibm4xx/copyoutstr.c      Thu Mar 05 01:13:00 2020 +0000
+++ b/sys/arch/powerpc/ibm4xx/copyoutstr.c      Thu Mar 05 01:15:35 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: copyoutstr.c,v 1.12 2020/03/05 01:13:00 rin Exp $      */
+/*     $NetBSD: copyoutstr.c,v 1.13 2020/03/05 01:15:35 rin Exp $      */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: copyoutstr.c,v 1.12 2020/03/05 01:13:00 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: copyoutstr.c,v 1.13 2020/03/05 01:15:35 rin Exp $");
 
 #include <sys/param.h>
 #include <uvm/uvm_extern.h>
@@ -79,7 +79,7 @@
                "sync; isync;"
 
                "1:"
-               "mtpid %1;sync;"
+               "mtpid %1; sync;"
                "lbz %2,0(%6); addi %6,%6,1;"   /* Store kernel byte */
                "sync; isync;"
                "mtpid %4; sync;"               /* Load user ctx */



Home | Main Index | Thread Index | Old Index