diff options
author | marius <marius@FreeBSD.org> | 2008-09-04 20:08:21 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2008-09-04 20:08:21 +0000 |
commit | 07104b5d3d4daad9a1cd0721c35d5ffb062cacdd (patch) | |
tree | 264c9bca3396478bab493612eb99d72c0537bc16 /sys/sparc64 | |
parent | bd972456874dfa418a08471bb9813b0f485bb2ba (diff) | |
download | FreeBSD-src-07104b5d3d4daad9a1cd0721c35d5ffb062cacdd.zip FreeBSD-src-07104b5d3d4daad9a1cd0721c35d5ffb062cacdd.tar.gz |
Ensure the caches have the desired configuration (see especially
cheetah_cache_enable()).
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 1 | ||||
-rw-r--r-- | sys/sparc64/sparc64/mp_machdep.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index 382fbbf..fa173cb 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -374,6 +374,7 @@ sparc64_init(caddr_t mdp, u_long o1, u_long o2, u_long o3, ofw_vec_t *vec) } cache_init(pc); + cache_enable(); uma_set_align(pc->pc_cache.dc_linesize - 1); cpu_block_copy = bcopy; diff --git a/sys/sparc64/sparc64/mp_machdep.c b/sys/sparc64/sparc64/mp_machdep.c index 58921fc..0fcd6e6 100644 --- a/sys/sparc64/sparc64/mp_machdep.c +++ b/sys/sparc64/sparc64/mp_machdep.c @@ -386,6 +386,7 @@ cpu_mp_bootstrap(struct pcpu *pc) csa = &cpu_start_args; if (cpu_impl >= CPU_IMPL_ULTRASPARCIII) cheetah_init(); + cache_enable(); pmap_map_tsb(); /* * Flush all non-locked TLB entries possibly left over by the |