Fix a #ifdef typo and the reds hidden by it

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22952 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Michael Sparmann 2009-10-05 12:29:08 +00:00
parent e05ca6c7c5
commit 385e821d04

View file

@ -154,20 +154,19 @@ void system_init(void)
void system_reboot(void) void system_reboot(void)
{ {
#ifdef IPODNANO2G #ifdef IPOD_NANO2G
if (ftl_sync() != 0) panicf("Failed to unmount flash!"); if (ftl_sync() != 0) panicf("Failed to unmount flash!");
/* Reset the SoC */ /* Reset the SoC */
asm volatile(" \ asm volatile("msr CPSR_c, #0xd3 \n"
msr CPSR_c, #0xd3 \ "mov r5, #0x110000 \n"
mov r5, #0x110000 \ "add r5, r5, #0xff \n"
add r5, r5, #0xff \ "add r6, r5, #0xa00 \n"
add r6, r5, #0xa00 \ "mov r10, #0x3c800000 \n"
mov r10, #0x3c800000 \ "str r6, [r10] \n"
str r6, [r10] \ "mov r6, #0xff0 \n"
mov r6, #0xff0 \ "str r6, [r10,#4] \n"
str r6, [r10,#4] \ "str r5, [r10] \n");
str r5, [r10]")
/* Wait for reboot to kick in */ /* Wait for reboot to kick in */
while(1); while(1);