forked from len0rd/rockbox
Meg-FX: Enable a real tick in the bootloader. Do cleanups before switching to firmware and cache handling. Put proper main return address in lr.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19368 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ea929a3e45
commit
cb06108024
7 changed files with 45 additions and 28 deletions
|
@ -244,10 +244,7 @@ void timeout_register(struct timeout *tmo, timeout_cb_type callback,
|
|||
****************************************************************************/
|
||||
void sleep(int ticks)
|
||||
{
|
||||
#if CONFIG_CPU == S3C2440 && defined(BOOTLOADER)
|
||||
extern void delay(int ticks);
|
||||
delay(ticks);
|
||||
#elif defined(CPU_PP) && defined(BOOTLOADER)
|
||||
#if defined(CPU_PP) && defined(BOOTLOADER)
|
||||
unsigned stop = USEC_TIMER + ticks * (1000000/HZ);
|
||||
while (TIME_BEFORE(USEC_TIMER, stop))
|
||||
switch_thread();
|
||||
|
@ -265,7 +262,7 @@ void sleep(int ticks)
|
|||
|
||||
void yield(void)
|
||||
{
|
||||
#if ((CONFIG_CPU == S3C2440 || defined(ELIO_TPJ1022)) && defined(BOOTLOADER))
|
||||
#if ((defined(ELIO_TPJ1022)) && defined(BOOTLOADER))
|
||||
/* Some targets don't like yielding in the bootloader */
|
||||
#else
|
||||
switch_thread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue