[U-Boot-Users] [PATCH] cleanup duplicated ARM interrupt code

CHANGELOG: Cleaned up duplicated code: moved common ARM interrupt handling code from cpu specific interrupts.c files into lib_arm/interrupts.c. Patch by Andreas Engel, 21 Nov 2005
Signed-off-by: Andreas Engel
Note: there were two cases (cpu/arm720t/ and cpu/sa1100/) where the disable_interrupts function only disabled IRQ, but not FIQ. I just ignored this in the generic function in lib_arm/, which disables both IRQ and FIQ. Perhaps someone with more knowledge of ARM cores can check whether or not this is ok.
Regards, Andreas Engel

Hi,
please drop my patch from 21.11.2005. It doesn't work with the current git head. Attached is an updated patch.
Regards, Andreas Engel
CHANGELOG:
Clean up duplicated code: moved common ARM interrupt handling code from cpu specific interrupts.c files into lib_arm/interrupts.c. Patch by Andreas Engel, 24 May 2005
Signed-off-by: Andreas Engel
cpu/arm1136/interrupts.c | 134 ------------------------------------ cpu/arm720t/interrupts.c | 139 ------------------------------------- cpu/arm920t/interrupts.c | 135 ------------------------------------ cpu/arm925t/interrupts.c | 135 ------------------------------------ cpu/arm926ejs/interrupts.c | 134 ------------------------------------ cpu/arm946es/interrupts.c | 135 ------------------------------------ cpu/arm_intcm/interrupts.c | 135 ------------------------------------ cpu/ixp/interrupts.c | 117 ------------------------------- cpu/lh7a40x/interrupts.c | 135 ------------------------------------ cpu/pxa/interrupts.c | 117 ------------------------------- cpu/s3c44b0/interrupts.c | 104 ---------------------------- cpu/sa1100/interrupts.c | 137 ------------------------------------- lib_arm/Makefile | 3 lib_arm/interrupts.c | 165 +++++++++++++++++++++++++++++++++++++++++++++ 14 files changed, 172 insertions(+), 1553 deletions(-)
participants (2)
-
Andreas Engel
-
Andreas Engel