sw_isr_table.h: clean up definition
This private data structure now no longer introduces a typedef or uses CamelCase. It's not necessary to specify the size of extern arrays, so we don't need a block of #ifdefs for every arch. Change-Id: I71fe61822ecef29820280a43d5ac2822a61f7082 Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
d490573933
commit
164ba8c5cd
6 changed files with 26 additions and 31 deletions
|
@ -26,20 +26,15 @@ extern "C" {
|
|||
* loaded arg -> r0, isr -> r3 in _isr_wrapper with one ldmia instruction,
|
||||
* on ARM Cortex-M (Thumb2).
|
||||
*/
|
||||
struct _IsrTableEntry {
|
||||
struct _isr_table_entry {
|
||||
void *arg;
|
||||
void (*isr)(void *);
|
||||
};
|
||||
|
||||
typedef struct _IsrTableEntry _IsrTableEntry_t;
|
||||
|
||||
#ifdef CONFIG_ARC
|
||||
extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS - 16];
|
||||
#elif CONFIG_NIOS2
|
||||
extern _IsrTableEntry_t _sw_isr_table[NIOS2_NIRQ];
|
||||
#else
|
||||
extern _IsrTableEntry_t _sw_isr_table[CONFIG_NUM_IRQS];
|
||||
#endif
|
||||
/* The software ISR table itself, an array of these structures indexed by the
|
||||
* irq line
|
||||
*/
|
||||
extern struct _isr_table_entry _sw_isr_table[];
|
||||
|
||||
#endif /* _ASMLANGUAGE */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue