forked from len0rd/rockbox
Oops. sleep() doesn't work on PortalPlayer builds. Use udelay() instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12138 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
942e4d8d58
commit
7908740b94
1 changed files with 4 additions and 4 deletions
|
|
@ -74,7 +74,7 @@ void* main(void)
|
|||
printf(buf);
|
||||
} else {
|
||||
printf("ATA error: %d", i);
|
||||
sleep(HZ*5);
|
||||
udelay(5000000);
|
||||
power_off();
|
||||
}
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ void* main(void)
|
|||
if (rc<=0)
|
||||
{
|
||||
printf("No partition found");
|
||||
sleep(HZ*5);
|
||||
udelay(5000000);
|
||||
power_off();
|
||||
}
|
||||
|
||||
|
|
@ -104,7 +104,7 @@ void* main(void)
|
|||
printf("Error!");
|
||||
printf("Can't load /System/OF.bin:");
|
||||
printf(strerror(rc));
|
||||
sleep(HZ*5);
|
||||
udelay(5000000);
|
||||
power_off();
|
||||
}
|
||||
} else {
|
||||
|
|
@ -114,7 +114,7 @@ void* main(void)
|
|||
printf("Error!");
|
||||
printf("Can't load %s:", BOOTFILE);
|
||||
printf(strerror(rc));
|
||||
sleep(HZ*5);
|
||||
udelay(5000000);
|
||||
power_off();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue