mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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:
parent
e05ca6c7c5
commit
385e821d04
1 changed files with 10 additions and 11 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue