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 a comment to sp_tlb_flush() about f...



details:   https://anonhg.NetBSD.org/src/rev/f1c50b014742
branches:  trunk
changeset: 770555:f1c50b014742
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Oct 22 21:00:40 2011 +0000

description:
add a comment to sp_tlb_flush() about fixing the asm() better.

diffstat:

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

diffs (30 lines):

diff -r 460c5589bf86 -r f1c50b014742 sys/arch/sparc/sparc/pmap.c
--- a/sys/arch/sparc/sparc/pmap.c       Sat Oct 22 20:59:12 2011 +0000
+++ b/sys/arch/sparc/sparc/pmap.c       Sat Oct 22 21:00:40 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pmap.c,v 1.346 2011/09/01 08:47:56 martin Exp $ */
+/*     $NetBSD: pmap.c,v 1.347 2011/10/22 21:00:40 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -56,7 +56,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.346 2011/09/01 08:47:56 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.347 2011/10/22 21:00:40 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -604,6 +604,11 @@
 static void
 sp_tlb_flush(int va, int ctx, int lvl)
 {
+       /*
+        * XXX convert %o3 (oldpsr), %o4 (SRMMU_CXR) and %o5 (old context)
+        * into generically named registers.  right now we're assuming that
+        * gcc doesn't do anything funny with these registers.
+        */
 
        /* Traps off */
        __asm("rd       %psr, %o3");



Home | Main Index | Thread Index | Old Index