1
0
Fork 0
forked from len0rd/rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19717 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sevakis 2009-01-08 10:38:40 +00:00
parent 4ed78f5c72
commit cb7e88d3b6
2 changed files with 6 additions and 1 deletions

View file

@ -114,7 +114,7 @@ void system_reboot(void)
void system_exception_wait(void)
{
INTMSK = 0xFFFFFFFF;
while (GPGDAT & (1 << 0)) == 0); /* Wait for power button */
while ((GPGDAT & (1 << 0)) == 0); /* Wait for power button */
}
static void set_page_tables(void)

View file

@ -186,6 +186,11 @@ void system_reboot(void)
);
}
void system_exception_wait(void)
{
while (1);
}
void system_init(void)
{
/* taken from linux/arch/arm/mach-itdm320-20/irq.c */