summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2012-08-29 19:54:33 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2012-08-29 19:54:33 +0000
commitd7aa21f8b384dc8207acc901a58c568714ca064a (patch)
treed273cc304b4bbfdac55cc8ca2249d9af19a522bb
parentd26f0da503ecd675b62453211ce61305c52b0983 (diff)
Make sure the interrupt stack for the boot processor is properly aligned to
a 64K boundary. This means we don't have to worry about virtual cache aliasing anymore since SPARC V9 CPUs have at most a 16K aliasing.
-rw-r--r--sys/arch/sparc64/sparc64/pmap.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c
index 0a7b92c12bd..b1e31bce64f 100644
--- a/sys/arch/sparc64/sparc64/pmap.c
+++ b/sys/arch/sparc64/sparc64/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.76 2012/04/26 21:32:20 okan Exp $ */
+/* $OpenBSD: pmap.c,v 1.77 2012/08/29 19:54:32 kettenis Exp $ */
/* $NetBSD: pmap.c,v 1.107 2001/08/31 16:47:41 eeh Exp $ */
#undef NO_VCACHE /* Don't forget the locked TLB in dostart */
/*
@@ -1382,9 +1382,7 @@ remap_data:
#ifdef DIAGNOSTIC
vmmap += NBPG; /* redzone -- XXXX do we need one? */
#endif
- if ((vmmap ^ INTSTACK) & VA_ALIAS_MASK)
- vmmap += NBPG; /* Matchup virtual color for D$ */
- intstk = vmmap;
+ intstk = vmmap = roundup(vmmap, 64*KB);
cpus = (struct cpu_info *)(intstk + CPUINFO_VA - INTSTACK);
BDPRINTF(PDB_BOOT1,