Date: Mon, 7 Aug 2006 19:06:02 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103390 for review Message-ID: <200608071906.k77J62Es054699@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103390 Change 103390 by imp@imp_bugs on 2006/08/07 19:05:43 At the cost of a few bytes, make this more general. Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib.h#14 edit .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/reset.c#3 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/lib.h#14 (text) ==== @@ -41,7 +41,7 @@ int xmodem_rx(char *dst); /* */ -void start_wdog(void); +void start_wdog(int n); void reset(void); /* Delay us */ ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/reset.c#3 (text+ko) ==== @@ -49,9 +49,9 @@ * it can kick the watch dog part of the ST part for the OS's driver. */ void -start_wdog(void) +start_wdog(int n) { - // The following should effect a reset after 30 seconds. - AT91C_BASE_ST->ST_WDMR = (30 * (32768 / 128)) | AT91C_ST_RSTEN; + // The following should effect a reset after N seconds. + AT91C_BASE_ST->ST_WDMR = (n * (32768 / 128)) | AT91C_ST_RSTEN; AT91C_BASE_ST->ST_CR = AT91C_ST_WDRST; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608071906.k77J62Es054699>