Skip to content
Permalink
Browse files

Z_ISR_DECLARE: ensure proper alignment on 64-bit targets

Prevent spurious unexpected alignment on 64-bit targets.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
  • Loading branch information...
Nicolas Pitre authored and andrewboie committed Jul 24, 2019
1 parent 6b90a02 commit 11d4f01870f3acf71d521ea02b2f3e5bb82347ed
Showing with 2 additions and 2 deletions.
  1. +2 −2 include/sw_isr_table.h
@@ -65,8 +65,8 @@ struct _isr_list {
* and/or SW ISR tables.
*/
#define Z_ISR_DECLARE(irq, flags, func, param) \
static struct _isr_list Z_GENERIC_SECTION(.intList) __used \
_MK_ISR_NAME(func, __COUNTER__) = \
static Z_DECL_ALIGN(struct _isr_list) Z_GENERIC_SECTION(.intList) \
__used _MK_ISR_NAME(func, __COUNTER__) = \
{irq, flags, &func, (void *)param}

#define IRQ_TABLE_SIZE (CONFIG_NUM_IRQS - CONFIG_GEN_IRQ_START_VECTOR)

0 comments on commit 11d4f01

Please sign in to comment.
You can’t perform that action at this time.