From cc5b0439a8f05afbb48a868e97ca9f196f5a8404 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Sat, 29 Aug 2020 23:38:56 -0400 Subject: jz4760: Prioritize Audio DMA and TCU0 (systick) above all others (And loop in the IRQ handler to make sure we catch everything!) Change-Id: I813272c69e981fdc214ec28448ced403ad366ea0 --- .../target/mips/ingenic_jz47xx/system-jz4760.c | 44 +++++++--------------- 1 file changed, 13 insertions(+), 31 deletions(-) (limited to 'firmware/target/mips/ingenic_jz47xx/system-jz4760.c') diff --git a/firmware/target/mips/ingenic_jz47xx/system-jz4760.c b/firmware/target/mips/ingenic_jz47xx/system-jz4760.c index 01d6d8d93e..4489212ccc 100644 --- a/firmware/target/mips/ingenic_jz47xx/system-jz4760.c +++ b/firmware/target/mips/ingenic_jz47xx/system-jz4760.c @@ -244,41 +244,20 @@ static int get_irq_number(void) if (UNLIKELY(irq0 < 0) && UNLIKELY(irq1 < 0)) return -1; -#if 1 - // Prioritze AIC and SADC, then everything on ipl1 (ie MSC mostly) - if (ipl1 & 1<<(IRQ_AIC-32)) { - irq = IRQ_AIC; - ipl1 &= ~(1<<(IRQ_AIC-32)); - } else if (ipl0 & 1<= 0)) irqvector[irq](); + goto top; } #define EXC(x,y) case (x): return (y); -- cgit v1.2.3