forked from len0rd/rockbox
PP5020/PP5024: Add ASM optimized inline current_core.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13155 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0b7bb31453
commit
036168cbf9
2 changed files with 20 additions and 10 deletions
|
@ -276,16 +276,6 @@ void irq(void)
|
|||
#endif
|
||||
#endif /* BOOTLOADER */
|
||||
|
||||
unsigned int current_core(void)
|
||||
{
|
||||
if((PROCESSOR_ID & 0xff) == PROC_ID_CPU)
|
||||
{
|
||||
return CPU;
|
||||
}
|
||||
return COP;
|
||||
}
|
||||
|
||||
|
||||
/* TODO: The following two function have been lifted straight from IPL, and
|
||||
hence have a lot of numeric addresses used straight. I'd like to use
|
||||
#defines for these, but don't know what most of them are for or even what
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue