mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-23 23:17:38 -04:00
PortalPlayer: Implement irq_handler() directly in C code rather than dispatching to irq() from crt0-pp.S. Remove unneeded STUB macros.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19801 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5d1eb8ee31
commit
73f2d001fd
3 changed files with 2 additions and 15 deletions
|
|
@ -362,19 +362,6 @@ data_abort_handler:
|
||||||
mov r1, #2
|
mov r1, #2
|
||||||
b UIE
|
b UIE
|
||||||
|
|
||||||
irq_handler:
|
|
||||||
#ifndef STUB
|
|
||||||
stmfd sp!, {r0-r3, r12, lr}
|
|
||||||
bl irq
|
|
||||||
ldmfd sp!, {r0-r3, r12, lr}
|
|
||||||
#endif
|
|
||||||
subs pc, lr, #4
|
|
||||||
|
|
||||||
#ifdef STUB
|
|
||||||
UIE:
|
|
||||||
b UIE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Align stacks to cache line boundary */
|
/* Align stacks to cache line boundary */
|
||||||
.balign 32
|
.balign 32
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
extern void TIMER1(void);
|
extern void TIMER1(void);
|
||||||
extern void TIMER2(void);
|
extern void TIMER2(void);
|
||||||
|
|
||||||
void irq(void)
|
void __attribute__((interrupt("IRQ"))) irq_handler(void)
|
||||||
{
|
{
|
||||||
if(CURRENT_CORE == CPU)
|
if(CURRENT_CORE == CPU)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ extern void SERIAL0(void);
|
||||||
extern void ipod_mini_button_int(void); /* iPod Mini 1st gen only */
|
extern void ipod_mini_button_int(void); /* iPod Mini 1st gen only */
|
||||||
extern void ipod_4g_button_int(void); /* iPod 4th gen and higher only */
|
extern void ipod_4g_button_int(void); /* iPod 4th gen and higher only */
|
||||||
|
|
||||||
void irq(void)
|
void __attribute__((interrupt("IRQ"))) irq_handler(void)
|
||||||
{
|
{
|
||||||
if(CURRENT_CORE == CPU)
|
if(CURRENT_CORE == CPU)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue