mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-08 20:55:17 -05:00
Correct the memory sizes (IRAM and DRAM) for the Nano2G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22025 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
658636996b
commit
5b3f333dd7
6 changed files with 152 additions and 16 deletions
|
|
@ -96,12 +96,15 @@ void irq_handler(void)
|
|||
"sub sp, sp, #8 \n"); /* Reserve stack */
|
||||
|
||||
int irq_no = INTOFFSET;
|
||||
int sources = SRCPND;
|
||||
|
||||
if (irq_no==10) { INTMSK &= ~(1<<10); }
|
||||
|
||||
irqvector[irq_no]();
|
||||
|
||||
/* clear interrupt */
|
||||
SRCPND = (1 << irq_no);
|
||||
INTPND = INTPND;
|
||||
SRCPND = sources;
|
||||
INTPND = sources;
|
||||
|
||||
asm volatile( "add sp, sp, #8 \n" /* Cleanup stack */
|
||||
"ldmfd sp!, {r0-r7, ip, lr} \n" /* Restore context */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue