diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2009-05-11 12:51:25 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2009-05-11 12:51:25 +0000 |
commit | a7e71f851ecff560c7acaa6a3aef45856ce4ba42 (patch) | |
tree | 68762eae1751b99cdecf3f56ee6ca29489274b75 /sys/arch | |
parent | 036ec2a0a9488aeb70a4a3b9942ef99c548abee3 (diff) |
Better config for v7.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm/arm/cpufunc.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c index f63dc12f918..39a8ff8b33b 100644 --- a/sys/arch/arm/arm/cpufunc.c +++ b/sys/arch/arm/arm/cpufunc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpufunc.c,v 1.9 2009/05/08 02:57:32 drahn Exp $ */ +/* $OpenBSD: cpufunc.c,v 1.10 2009/05/11 12:51:24 drahn Exp $ */ /* $NetBSD: cpufunc.c,v 1.65 2003/11/05 12:53:15 scw Exp $ */ /* @@ -2284,12 +2284,6 @@ arm11_setup(args) #ifdef CPU_ARMv7 struct cpu_option armv7_options[] = { - { "cpu.cache", BIC, OR, (CPU_CONTROL_IC_ENABLE | CPU_CONTROL_DC_ENABLE) }, - { "cpu.nocache", OR, BIC, (CPU_CONTROL_IC_ENABLE | CPU_CONTROL_DC_ENABLE) }, - { "armv7.cache", BIC, OR, (CPU_CONTROL_IC_ENABLE | CPU_CONTROL_DC_ENABLE) }, - { "armv7.icache", BIC, OR, CPU_CONTROL_IC_ENABLE }, - { "armv7.dcache", BIC, OR, CPU_CONTROL_DC_ENABLE }, - { NULL, IGN, IGN, 0 } }; void @@ -2300,22 +2294,22 @@ armv7_setup(args) cpuctrl = CPU_CONTROL_MMU_ENABLE | CPU_CONTROL_SYST_ENABLE | CPU_CONTROL_IC_ENABLE | CPU_CONTROL_DC_ENABLE - /* | CPU_CONTROL_BPRD_ENABLE */; + | CPU_CONTROL_BPRD_ENABLE ; cpuctrlmask = CPU_CONTROL_MMU_ENABLE | CPU_CONTROL_SYST_ENABLE | CPU_CONTROL_IC_ENABLE | CPU_CONTROL_DC_ENABLE | CPU_CONTROL_ROM_ENABLE | CPU_CONTROL_BPRD_ENABLE | CPU_CONTROL_BEND_ENABLE | CPU_CONTROL_AFLT_ENABLE - | CPU_CONTROL_ROUNDROBIN | CPU_CONTROL_CPCLK; + | CPU_CONTROL_ROUNDROBIN | CPU_CONTROL_CPCLK + | CPU_CONTROL_VECRELOC | CPU_CONTROL_FI | CPU_CONTROL_VE; #ifndef ARM32_DISABLE_ALIGNMENT_FAULTS cpuctrl |= CPU_CONTROL_AFLT_ENABLE; #endif - cpuctrl = parse_cpu_options(args, armv7_options, cpuctrl); + if (vector_page == ARM_VECTORS_HIGH) + cpuctrl |= CPU_CONTROL_VECRELOC; -#ifdef __ARMEB__ - cpuctrl |= CPU_CONTROL_BEND_ENABLE; -#endif + cpuctrl = parse_cpu_options(args, armv7_options, cpuctrl); /* Clear out the cache */ cpu_idcache_wbinv_all(); |