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 make sp_tlb_flush() work for profiling ...



details:   https://anonhg.NetBSD.org/src/rev/bda6c01f3562
branches:  trunk
changeset: 550891:bda6c01f3562
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Aug 24 18:10:31 2003 +0000

description:
make sp_tlb_flush() work for profiling kernels:
when we're profiling, the compiler creates a stack frame for us,
so doing a "retl" isn't so good in that case.

diffstat:

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

diffs (36 lines):

diff -r b48947e1d158 -r bda6c01f3562 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Sun Aug 24 18:07:03 2003 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Sun Aug 24 18:10:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.269 2003/08/24 17:52:36 chs Exp $ */
+/*     $NetBSD: pmap.c,v 1.270 2003/08/24 18:10:31 chs Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.269 2003/08/24 17:52:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.270 2003/08/24 18:10:31 chs Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -630,7 +630,7 @@
        /* and turn traps on again */
        __asm("wr       %o3, 0, %psr");
        __asm("nop");
-       __asm("retl");
+       __asm("nop");
        __asm("nop");
 }
 
@@ -858,7 +858,7 @@
 #endif /* MULTIPROCESSOR */
 
 /* Set the page table entry for va to pte. */
-__inline void
+void
 setpte4m(va, pte)
        vaddr_t va;
        int pte;



Home | Main Index | Thread Index | Old Index