summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-01-28 20:40:58 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-01-28 20:40:58 +0000
commit7908740b949654d1201d8a7df0cc44652af4d700 (patch)
treea35774fb175fa847e4617e6aee24559ff52d40a7 /bootloader
parent942e4d8d5837512150b01d44661de9e988785fc2 (diff)
downloadrockbox-7908740b949654d1201d8a7df0cc44652af4d700.tar.gz
rockbox-7908740b949654d1201d8a7df0cc44652af4d700.tar.bz2
rockbox-7908740b949654d1201d8a7df0cc44652af4d700.zip
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
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-pp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index a02510e31c..5659073457 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -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();
}
}