diff options
author | kato <kato@FreeBSD.org> | 1997-06-27 13:46:19 +0000 |
---|---|---|
committer | kato <kato@FreeBSD.org> | 1997-06-27 13:46:19 +0000 |
commit | d74d0d7da5f91d54d8e16149aaafef8d61af050d (patch) | |
tree | 90ef56b40e68ef1c245d26de2debb4b1e63c6658 /sys/amd64/amd64/initcpu.c | |
parent | f8783d31d52dc1fac8eb321d102153e23c3550fd (diff) | |
download | FreeBSD-src-d74d0d7da5f91d54d8e16149aaafef8d61af050d.zip FreeBSD-src-d74d0d7da5f91d54d8e16149aaafef8d61af050d.tar.gz |
Added CPU_DIRECT_MAPPED_CACHE option which sets L1 cache in direct
mapped mode on Cyrix 486DLC box.
Diffstat (limited to 'sys/amd64/amd64/initcpu.c')
-rw-r--r-- | sys/amd64/amd64/initcpu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c index c5e8a18..624c366 100644 --- a/sys/amd64/amd64/initcpu.c +++ b/sys/amd64/amd64/initcpu.c @@ -26,7 +26,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: initcpu.c,v 1.4 1997/04/26 04:08:45 kato Exp $ + * $Id: initcpu.c,v 1.5 1997/05/31 08:45:24 kato Exp $ */ #include "opt_cpu.h" @@ -119,6 +119,9 @@ init_486dlc(void) #else ccr0 |= CCR0_NC1; #endif +#ifdef CPU_DIRECT_MAPPED_CACHE + ccr0 |= CCR0_CO; /* Direct mapped mode. */ +#endif write_cyrix_reg(CCR0, ccr0); /* Clear non-cacheable region. */ |