mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-01 23:11:55 +00:00
Routines are no longer flagged as constructors using the FUNC_CONSTRUCT(level) macro. This is because some compilers do not support constructor levels. To indicate that a routine should be a constructor, the SYS_PREKERNEL_INIT() macro should be used AFTER the definition of the routine. For example ... void my_library_init(void) { ... } SYS_PREKERNEL_INIT(my_library_init, 500); The first parameter to SYS_PREKERNEL_INIT() is the name of the routine. The second is the priority level (000...999). The lower the number, the higher the priority. NOTE: It is important that all three digits are specified; otherwise the linker may put the constructors in an undesired order. Change-Id: Ic334875c60a453b39c10a2ffdee856b4851cb16c Signed-off-by: Peter Mitsis <peter.mitsis@windriver.com> |
||
---|---|---|
.. | ||
include | ||
compiler_stack_protect.c | ||
ctors.c | ||
idle.c | ||
int_latency_bench.c | ||
nano_context.c | ||
nano_fiber.c | ||
nano_fifo.c | ||
nano_init.c | ||
nano_lifo.c | ||
nano_sema.c | ||
nano_stack.c | ||
nano_sys_clock.c | ||
nano_timer.c | ||
nanometrics.c | ||
string_s.c | ||
version.c |