Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc Add "memory" constraint on wrpsr, lost ...



details:   https://anonhg.NetBSD.org/src/rev/ed91f307bec8
branches:  trunk
changeset: 946799:ed91f307bec8
user:      uwe <uwe%NetBSD.org@localhost>
date:      Wed Dec 09 11:35:44 2020 +0000

description:
Add "memory" constraint on wrpsr, lost in previous.

diffstat:

 sys/arch/sparc/sparc/pmap.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r db6f6ec066ef -r ed91f307bec8 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Wed Dec 09 08:51:05 2020 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Wed Dec 09 11:35:44 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.368 2020/12/09 04:02:20 uwe Exp $ */
+/*     $NetBSD: pmap.c,v 1.369 2020/12/09 11:35:44 uwe Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.368 2020/12/09 04:02:20 uwe Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.369 2020/12/09 11:35:44 uwe Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -653,7 +653,8 @@
         * XXX: Add to asm.h?  We can use this in cache.c too.
         */
        opsr = getpsr();        /* KDASSERT(opsr & PSR_ET); */
-       __asm volatile ("wr %0, %1, %%psr" :: "r"(opsr), "n"(PSR_ET));
+       __asm volatile ("wr %0, %1, %%psr"
+                       :: "r"(opsr), "n"(PSR_ET) : "memory");
        __asm volatile ("nop; nop;nop");
 
        octx = getcontext4m();  /* save context */



Home | Main Index | Thread Index | Old Index