diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-05-06 19:31:18 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-05-11 15:28:30 +0200 |
commit | ef300e42234eac066b193c871714203d999b481c (patch) | |
tree | 2dddd78a2a0a773ec4e8780343097db527decaff /include/asm-mips | |
parent | [MIPS] Fix do_default_vi to use get_irq_regs to get the irq register ptr. (diff) | |
download | linux-ef300e42234eac066b193c871714203d999b481c.tar.xz linux-ef300e42234eac066b193c871714203d999b481c.zip |
[MIPS] Define and use vi_handler_t for vectored interrupt handlers.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/system.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/asm-mips/system.h b/include/asm-mips/system.h index 3713d256d369..bb0b289dbc9e 100644 --- a/include/asm-mips/system.h +++ b/include/asm-mips/system.h @@ -464,7 +464,10 @@ static inline unsigned long __cmpxchg_local(volatile void * ptr, extern void set_handler (unsigned long offset, void *addr, unsigned long len); extern void set_uncached_handler (unsigned long offset, void *addr, unsigned long len); -extern void *set_vi_handler (int n, void *addr); + +typedef void (*vi_handler_t)(void); +extern void *set_vi_handler (int n, vi_handler_t addr); + extern void *set_except_vector(int n, void *addr); extern unsigned long ebase; extern void per_cpu_trap_init(void); |