add an option to force ARM9 dcache to write-through mode.

This commit is contained in:
bsh 2004-04-03 04:34:40 +00:00
parent 40f1406199
commit 16cf047697
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpufunc.c,v 1.66 2004/01/26 15:54:16 rearnsha Exp $ */
/* $NetBSD: cpufunc.c,v 1.67 2004/04/03 04:34:40 bsh Exp $ */
/*
* arm7tdmi support code Copyright (c) 2001 John Fremlin
@ -46,7 +46,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.66 2004/01/26 15:54:16 rearnsha Exp $");
__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.67 2004/04/03 04:34:40 bsh Exp $");
#include "opt_compat_netbsd.h"
#include "opt_cpuoptions.h"
@ -977,7 +977,11 @@ set_cpufuncs()
arm9_dcache_sets_inc;
arm9_dcache_index_inc = 1U << (32 - arm_dcache_l2_assoc);
arm9_dcache_index_max = 0U - arm9_dcache_index_inc;
#ifdef ARM9_CACHE_WRITE_THROUGH
pmap_pte_init_arm9();
#else
pmap_pte_init_generic();
#endif
return 0;
}
#endif /* CPU_ARM9 */

View File

@ -1,4 +1,4 @@
# $NetBSD: files.arm,v 1.76 2003/11/05 12:53:15 scw Exp $
# $NetBSD: files.arm,v 1.77 2004/04/03 04:34:40 bsh Exp $
# temporary define to allow easy moving to ../arch/arm/arm32
defflag ARM32
@ -17,6 +17,7 @@ defflag opt_cpuoptions.h XSCALE_CACHE_WRITE_BACK
defflag opt_cpuoptions.h XSCALE_NO_COALESCE_WRITES
defflag opt_cpuoptions.h XSCALE_CACHE_READ_WRITE_ALLOCATE
defflag opt_cpuoptions.h ARM32_DISABLE_ALIGNMENT_FAULTS
defflag opt_cpuoptions.h ARM9_CACHE_WRITE_THROUGH
# Interrupt implementation header definition.
defparam opt_arm_intr_impl.h ARM_INTR_IMPL