mailer | 8 Jan 2012 23:29
Favicon

jethead71: r31642 - in trunk/firmware: . target/arm target/arm/as3525 target/arm/as3525/sansa-fuzev2

Date: 2012-01-08 23:29:25 +0100 (Sun, 08 Jan 2012)
New Revision: 31642

Log Message:
AS3525v1/2: Enable nested handling of interrupts

Mostly for the sake of reducing latency for audio servicing where other service
routines can take a long time to complete, leading to occasional drops of a
few samples, especially in recording, where they are fairly frequent.

One mystery that remains is GPIOA IRQ being interrupted causes strange
undefined instruction exceptions, most easily produced on my Fuze V2 with a
scrollwheel. Making GPIOA the top ISR for now, thus not interruptible, cures it.

SVC mode is used during the actual calls. Hopefully the SVC stack size is
sufficient. Prologue and epilogue code only uses the IRQ stack and is large
enough.

Any routine code that should not be interrupted should disable IRQ itself from
here on in.

Modified:
   trunk/firmware/kernel.c
   trunk/firmware/target/arm/as3525/fmradio-i2c-as3525.c
   trunk/firmware/target/arm/as3525/sansa-fuzev2/button-fuzev2.c
   trunk/firmware/target/arm/as3525/sd-as3525.c
   trunk/firmware/target/arm/as3525/sd-as3525v2.c
   trunk/firmware/target/arm/as3525/system-as3525.c
   trunk/firmware/target/arm/crt0.S
   trunk/firmware/target/arm/system-arm.h
(Continue reading)


Gmane