diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-20 20:31:05 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-20 20:31:05 +0000 |
commit | 69bafa6f7f5fa37202c6d5f6963d1296031965bd (patch) | |
tree | 536ad393cbc03b5f2730043a2c1a2508f85694d3 /sys/arch | |
parent | 6a593177b592333d64ab2538becbc2723aae792d (diff) |
Fix tsbsize computation; from NetBSD
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/sparc64/pmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/pmap.c b/sys/arch/sparc64/sparc64/pmap.c index 14f84bc2ffe..11656cfd921 100644 --- a/sys/arch/sparc64/sparc64/pmap.c +++ b/sys/arch/sparc64/sparc64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.30 2006/06/16 23:04:49 miod Exp $ */ +/* $OpenBSD: pmap.c,v 1.31 2006/06/20 20:31:04 miod 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 */ /* @@ -873,9 +873,9 @@ remap_data: /* * Calculate approx TSB size. This probably needs tweaking. */ - if (physmem < 64 * 1024 * 1024) + if (physmem < atop(64 * 1024 * 1024)) tsbsize = 0; - else if (physmem < 512 * 1024 * 1024) + else if (physmem < atop(512 * 1024 * 1024)) tsbsize = 1; else tsbsize = 2; |