mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Sansa AMS: Don't allocate stack in irq_handler
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19338 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8e19a739be
commit
38e97057a9
1 changed files with 2 additions and 4 deletions
|
|
@ -104,8 +104,7 @@ void irq_handler(void)
|
|||
* Based on: linux/arch/arm/kernel/entry-armv.S and system-meg-fx.c
|
||||
*/
|
||||
|
||||
asm volatile( "stmfd sp!, {r0-r7, ip, lr} \n" /* Store context */
|
||||
"sub sp, sp, #8 \n"); /* Reserve stack */
|
||||
asm volatile( "stmfd sp!, {r0-r7, ip, lr} \n" );/* Store context */
|
||||
|
||||
unsigned int irq_no = 0;
|
||||
int status = VIC_IRQ_STATUS;
|
||||
|
|
@ -114,8 +113,7 @@ void irq_handler(void)
|
|||
|
||||
irqvector[irq_no]();
|
||||
|
||||
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
|
||||
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */
|
||||
asm volatile( "ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */
|
||||
"subs pc, lr, #4 \n"); /* Return from IRQ */
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue