forked from len0rd/rockbox
Fix red builds and make udelay actually work as it should again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12703 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
de061e8a30
commit
3631f11fea
1 changed files with 2 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
#include "stdbool.h"
|
#include "stdbool.h"
|
||||||
|
#include "kernel.h"
|
||||||
|
|
||||||
extern void system_reboot (void);
|
extern void system_reboot (void);
|
||||||
extern void system_init(void);
|
extern void system_init(void);
|
||||||
|
|
@ -40,7 +41,7 @@ extern unsigned int ipod_hw_rev;
|
||||||
static inline void udelay(unsigned usecs)
|
static inline void udelay(unsigned usecs)
|
||||||
{
|
{
|
||||||
unsigned stop = USEC_TIMER + usecs;
|
unsigned stop = USEC_TIMER + usecs;
|
||||||
while (TIME_AFTER(USEC_TIMER, stop));
|
while (TIME_BEFORE(USEC_TIMER, stop));
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int current_core(void);
|
unsigned int current_core(void);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue