Skip to content

Commit

Permalink
WIP - add tables local declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
rakons committed Dec 11, 2023
1 parent c70797e commit 8bf86a3
Show file tree
Hide file tree
Showing 7 changed files with 687 additions and 284 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1226,10 +1226,11 @@ if(CONFIG_GEN_ISR_TABLES)
# isr_tables.c is generated from ${ZEPHYR_LINK_STAGE_EXECUTABLE} by
# gen_isr_tables.py
add_custom_command(
OUTPUT isr_tables.c
OUTPUT isr_tables.c isr_tables.ld
COMMAND ${PYTHON_EXECUTABLE}
${ZEPHYR_BASE}/scripts/build/gen_isr_tables.py
--output-source isr_tables.c
--linker-output-file isr_tables.ld
--kernel $<TARGET_FILE:${ZEPHYR_LINK_STAGE_EXECUTABLE}>
--intlist-section .intList
--intlist-section intList
Expand Down
4 changes: 4 additions & 0 deletions arch/arm/core/vector_table.ld
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,8 @@ KEEP(*(".exc_vector_table.*"))

KEEP(*(.vectors))

#if LINKER_ZEPHYR_FINAL
INCLUDE zephyr/isr_tables.ld
#endif

_vector_end = .;
3 changes: 3 additions & 0 deletions include/zephyr/arch/arm64/scripts/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ SECTIONS

KEEP(*(.vectors))

#if LINKER_ZEPHYR_FINAL
INCLUDE zephyr/isr_tables.ld
#endif
_vector_end = .;

*(.text)
Expand Down
2 changes: 1 addition & 1 deletion include/zephyr/sw_isr_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ struct _isr_list_sname {

#ifdef CONFIG_SHARED_INTERRUPTS
struct z_shared_isr_client {
void (*isr)(const void *arg);
const void *arg;
void (*isr)(const void *arg);
};

struct z_shared_isr_table_entry {
Expand Down
Loading

0 comments on commit 8bf86a3

Please sign in to comment.