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}(): Consistently use %[t...



details:   https://anonhg.NetBSD.org/src/rev/0deb51de373d
branches:  trunk
changeset: 369975:0deb51de373d
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Sep 11 08:57:39 2022 +0000

description:
copy{in,out}(): Consistently use %[tmp] as scratch register. NFC.

diffstat:

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

diffs (44 lines):

diff -r c0f31d9fad8b -r 0deb51de373d sys/arch/powerpc/ibm4xx/trap.c
--- a/sys/arch/powerpc/ibm4xx/trap.c    Sun Sep 11 08:56:23 2022 +0000
+++ b/sys/arch/powerpc/ibm4xx/trap.c    Sun Sep 11 08:57:39 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.90 2022/09/11 08:56:23 rin Exp $    */
+/*     $NetBSD: trap.c,v 1.91 2022/09/11 08:57:39 rin Exp $    */
 
 /*
  * Copyright 2001 Wasabi Systems, Inc.
@@ -69,7 +69,7 @@
 #define        __UFETCHSTORE_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.90 2022/09/11 08:56:23 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.91 2022/09/11 08:57:39 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -451,9 +451,9 @@
 
        __asm volatile(
                "mfmsr  %[msr];"                /* Save MSR */
-               "li     %[pid],0x20;"           /* Disable IMMU */
-               "andc   %[pid],%[msr],%[pid];"
-               "mtmsr  %[pid];"
+               "li     %[tmp],0x20;"           /* Disable IMMU */
+               "andc   %[tmp],%[msr],%[tmp];"
+               "mtmsr  %[tmp];"
                "isync;"
                "mfpid  %[pid];"                /* Save old PID */
 
@@ -570,9 +570,9 @@
 
        __asm volatile(
                "mfmsr  %[msr];"                /* Save MSR */
-               "li     %[pid],0x20;"           /* Disable IMMU */
-               "andc   %[pid],%[msr],%[pid];"
-               "mtmsr  %[pid];"
+               "li     %[tmp],0x20;"           /* Disable IMMU */
+               "andc   %[tmp],%[msr],%[tmp];"
+               "mtmsr  %[tmp];"
                "isync;"
                "mfpid  %[pid];"                /* Save old PID */
 



Home | Main Index | Thread Index | Old Index