feat(system_init): introduce pre-scheduler and pre-app main handler registrations

- Added macros for registering handlers to run before the scheduler and app main.
- Updated various components to utilize the new registration system for initialization.
- Refactored app startup logic to streamline initialization sequence.
This commit is contained in:
Konstantin Kondrashov
2026-09-02 16:58:44 +03:00
parent 40f25003b4
commit 754ac1dd45
21 changed files with 348 additions and 129 deletions
@@ -22,6 +22,16 @@ SECTIONS
KEEP(*(SORT_BY_INIT_PRIORITY(.esysev_inits.*)))
PROVIDE(_esysev_inits_end = .);
. = ALIGN(4);
PROVIDE(_esysev_presc_start = .);
KEEP(*(SORT_BY_INIT_PRIORITY(.esysev_presc.*)))
PROVIDE(_esysev_presc_end = .);
. = ALIGN(4);
PROVIDE(_esysev_pream_start = .);
KEEP(*(SORT_BY_INIT_PRIORITY(.esysev_pream.*)))
PROVIDE(_esysev_pream_end = .);
. = ALIGN(4);
PROVIDE(_esysev_panic_start = .);
KEEP(*(SORT_BY_INIT_PRIORITY(.esysev_panic.*)))