From 7ad50c6f5935cbde4c96e742b90ce629dd325217 Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Wed, 26 May 2010 16:03:01 +0000 Subject: as3525: write irq/fiq handlers in C Declare VIC registers holding function pointers as volatile pointers to function pointers and access them directly without casting UIRQ() is an IRQ handler too, even if it doesn't return git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26313 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/as3525.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'firmware/export/as3525.h') diff --git a/firmware/export/as3525.h b/firmware/export/as3525.h index a58a0ae0ad..6b0e85f9c5 100644 --- a/firmware/export/as3525.h +++ b/firmware/export/as3525.h @@ -441,9 +441,9 @@ CE lines #define VIC_SOFT_INT (*(volatile unsigned long*)(VIC_BASE+0x18)) #define VIC_SOFT_INT_CLEAR (*(volatile unsigned long*)(VIC_BASE+0x1C)) #define VIC_PROTECTION (*(volatile unsigned long*)(VIC_BASE+0x20)) -#define VIC_VECT_ADDR (*(volatile unsigned long*)(VIC_BASE+0x30)) -#define VIC_DEF_VECT_ADDR (*(volatile unsigned long*)(VIC_BASE+0x34)) -#define VIC_VECT_ADDRS ((volatile unsigned long*)(VIC_BASE+0x100)) +#define VIC_VECT_ADDR ((void (* volatile *) (void)) (VIC_BASE+0x30)) +#define VIC_DEF_VECT_ADDR ((void (* volatile *) (void)) (VIC_BASE+0x34)) +#define VIC_VECT_ADDRS ((void (* volatile *) (void)) (VIC_BASE+0x100)) #define VIC_VECT_CNTLS ((volatile unsigned long*)(VIC_BASE+0x200)) /* Interrupt sources (for vectors setup) */ -- cgit