From d761c782c01bb2125cf25514353ed27a0fc0bb8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Thu, 2 Jan 2014 06:39:49 +0000 Subject: [PATCH] enable second FEC for m548x --- BaS_gcc/sys/exceptions.S | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/BaS_gcc/sys/exceptions.S b/BaS_gcc/sys/exceptions.S index 25fe606..5e249da 100644 --- a/BaS_gcc/sys/exceptions.S +++ b/BaS_gcc/sys/exceptions.S @@ -301,12 +301,18 @@ init_vec_loop: move.l a1,(INT_SOURCE_GPT0 + 64) * 4(a0) #endif /* MACHINE_FIREBEE */ + // install isr handlers for the three GPT timers, + // the FEC interrupts and the DMA task interrupts + // (used by network driver in BaS and MiNT) lea _lowlevel_isr_handler,a1 move.l a1,(INT_SOURCE_GPT1 + 64) * 4(a0) move.l a1,(INT_SOURCE_GPT2 + 64) * 4(a0) move.l a1,(INT_SOURCE_GPT3 + 64) * 4(a0) move.l a1,(INT_SOURCE_FEC0 + 64) * 4(a0) - //move.l a1,(INT_SOURCE_FEC1 + 64) * 4(a0) +#ifndef MACHINE_FIREBEE + // second FEC not wired on the FireBee + move.l a1,(INT_SOURCE_FEC1 + 64) * 4(a0) +#endif move.l a1,(INT_SOURCE_DMA + 64) * 4(a0) move.l (sp)+,a2 // Restore registers