PERFORCE change 98055 for review
Kevin Lo
kevlo at FreeBSD.org
Mon May 29 01:59:42 PDT 2006
http://perforce.freebsd.org/chv.cgi?CH=98055
Change 98055 by kevlo at kevlo_rtsl on 2006/05/29 08:57:56
Implement cpu_reset.
Affected files ...
.. //depot/projects/arm/src/sys/arm/s3c2xx0/s3c2410.c#2 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/s3c2xx0/s3c2410.c#2 (text+ko) ====
@@ -30,6 +30,7 @@
*/
#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/systm.h>
@@ -172,7 +173,12 @@
void
cpu_reset(void)
{
- while (1);
+ (void) disable_interrupts(I32_bit|F32_bit);
+
+ *(volatile unsigned int *)(S3C2410_WDT_BASE + WDT_WTCON)
+ = (0 << WTCON_PRESCALE_SHIFT) | WTCON_ENABLE |
+ WTCON_CLKSEL_16 | WTCON_ENRST;
+ for(;;);
}
int
More information about the p4-projects
mailing list