2018-07-29 02:42:06 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2018 Oticon A/S
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define NATIVE_INIT_LEVEL(level) \
|
|
|
|
__native_##level##_tasks_start = .; \
|
|
|
|
KEEP(*(SORT(.native_##level[0-9]_task))); \
|
|
|
|
KEEP(*(SORT(.native_##level[1-9][0-9]_task))); \
|
|
|
|
KEEP(*(SORT(.native_##level[1-9][0-9][0-9]_task))); \
|
|
|
|
|
2019-03-15 07:39:36 +08:00
|
|
|
SECTION_PROLOGUE (native_pre_tasks,,)
|
2018-07-29 02:42:06 +08:00
|
|
|
{
|
|
|
|
__native_tasks_start = .;
|
|
|
|
NATIVE_INIT_LEVEL(PRE_BOOT_1)
|
|
|
|
NATIVE_INIT_LEVEL(PRE_BOOT_2)
|
|
|
|
NATIVE_INIT_LEVEL(PRE_BOOT_3)
|
|
|
|
NATIVE_INIT_LEVEL(FIRST_SLEEP)
|
|
|
|
NATIVE_INIT_LEVEL(ON_EXIT)
|
|
|
|
__native_tasks_end = .;
|
2019-03-15 07:39:36 +08:00
|
|
|
}
|