From 15f4f9e27ad3fcc300787c59be49a2c2a472fa39 Mon Sep 17 00:00:00 2001 From: briggs Date: Wed, 21 May 2003 02:38:29 +0000 Subject: [PATCH] Make sure we call becc_calibrate_delay() _after_ becc_vaddr is set up. It happens to work otherwise when RedBoot leaves the timer running for us. --- sys/arch/evbarm/adi_brh/brh_machdep.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/arch/evbarm/adi_brh/brh_machdep.c b/sys/arch/evbarm/adi_brh/brh_machdep.c index d28ecfa0a538..8ed492e873b7 100644 --- a/sys/arch/evbarm/adi_brh/brh_machdep.c +++ b/sys/arch/evbarm/adi_brh/brh_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: brh_machdep.c,v 1.11 2003/05/17 23:46:59 thorpej Exp $ */ +/* $NetBSD: brh_machdep.c,v 1.12 2003/05/21 02:38:29 briggs Exp $ */ /* * Copyright (c) 2001, 2002, 2003 Wasabi Systems, Inc. @@ -409,7 +409,6 @@ initarm(void *arg) #endif /* Calibrate the delay loop. */ - becc_calibrate_delay(); becc_hardclock_hook = brh_hardclock_hook; /* @@ -711,6 +710,11 @@ initarm(void *arg) */ becc_vaddr = BRH_BECC_VBASE; + /* + * Now that we have becc_vaddr set, calibrate delay. + */ + becc_calibrate_delay(); + /* * BECC <= Rev7 can only address 64M through the inbound * PCI windows. Limit memory to 64M on those revs. (This