diff --git a/arch/common/gen_isr_tables.py b/arch/common/gen_isr_tables.py index cfcfaf36207..e18190f777b 100755 --- a/arch/common/gen_isr_tables.py +++ b/arch/common/gen_isr_tables.py @@ -134,7 +134,7 @@ source_header = """ #include #if defined(CONFIG_GEN_SW_ISR_TABLE) && defined(CONFIG_GEN_IRQ_VECTOR_TABLE) -#define ISR_WRAPPER ((uint32_t)&_isr_wrapper) +#define ISR_WRAPPER ((uintptr_t)&_isr_wrapper) #else #define ISR_WRAPPER NULL #endif @@ -148,7 +148,7 @@ def write_source_file(fp, vt, swt, intlist, syms): nv = intlist["num_vectors"] if vt: - fp.write("uint32_t __irq_vector_table _irq_vector_table[%d] = {\n" % nv) + fp.write("uintptr_t __irq_vector_table _irq_vector_table[%d] = {\n" % nv) for i in range(nv): fp.write("\t{},\n".format(vt[i])) fp.write("};\n") diff --git a/arch/common/isr_tables.c b/arch/common/isr_tables.c index b9a28bbdbb2..a6bad5ff90f 100644 --- a/arch/common/isr_tables.c +++ b/arch/common/isr_tables.c @@ -50,8 +50,8 @@ Z_GENERIC_SECTION(.irq_info) struct int_list_header _iheader = { #define IRQ_VECTOR_TABLE_DEFAULT_ISR z_irq_spurious #endif /* CONFIG_GEN_SW_ISR_TABLE */ -uint32_t __irq_vector_table _irq_vector_table[IRQ_TABLE_SIZE] = { - [0 ...(IRQ_TABLE_SIZE - 1)] = (uint32_t)&IRQ_VECTOR_TABLE_DEFAULT_ISR, +uintptr_t __irq_vector_table _irq_vector_table[IRQ_TABLE_SIZE] = { + [0 ...(IRQ_TABLE_SIZE - 1)] = (uintptr_t)&IRQ_VECTOR_TABLE_DEFAULT_ISR, }; #endif /* CONFIG_GEN_IRQ_VECTOR_TABLE */