Module Name: src Committed By: mrg Date: Sat Oct 22 21:00:40 UTC 2011
Modified Files: src/sys/arch/sparc/sparc: pmap.c Log Message: add a comment to sp_tlb_flush() about fixing the asm() better. To generate a diff of this commit: cvs rdiff -u -r1.346 -r1.347 src/sys/arch/sparc/sparc/pmap.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc/sparc/pmap.c diff -u src/sys/arch/sparc/sparc/pmap.c:1.346 src/sys/arch/sparc/sparc/pmap.c:1.347 --- src/sys/arch/sparc/sparc/pmap.c:1.346 Thu Sep 1 08:47:56 2011 +++ src/sys/arch/sparc/sparc/pmap.c Sat Oct 22 21:00:40 2011 @@ -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 @@ void (*pmap_rmu_p)(struct pmap *, vadd 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");