From ece4d5853289ee0336d206ef5265427c6e475e50 Mon Sep 17 00:00:00 2001 From: joff Date: Wed, 22 Dec 2004 19:18:13 +0000 Subject: [PATCH] support high vectors on ARM9 --- sys/arch/arm/arm/cpufunc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm/arm/cpufunc.c b/sys/arch/arm/arm/cpufunc.c index 97ab2e78ccfd..4159369fb5ee 100644 --- a/sys/arch/arm/arm/cpufunc.c +++ b/sys/arch/arm/arm/cpufunc.c @@ -1,4 +1,4 @@ -/* $NetBSD: cpufunc.c,v 1.67 2004/04/03 04:34:40 bsh Exp $ */ +/* $NetBSD: cpufunc.c,v 1.68 2004/12/22 19:18:13 joff Exp $ */ /* * arm7tdmi support code Copyright (c) 2001 John Fremlin @@ -46,7 +46,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.67 2004/04/03 04:34:40 bsh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.68 2004/12/22 19:18:13 joff Exp $"); #include "opt_compat_netbsd.h" #include "opt_cpuoptions.h" @@ -1870,6 +1870,9 @@ arm9_setup(args) cpuctrl |= CPU_CONTROL_BEND_ENABLE; #endif + if (vector_page == ARM_VECTORS_HIGH) + cpuctrl |= CPU_CONTROL_VECRELOC; + /* Clear out the cache */ cpu_idcache_wbinv_all();