1/*
2 * Copyright (c) 2018 Oticon A/S
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#define NATIVE_INIT_LEVEL(level)					\
8		__native_##level##_tasks_start = .;			\
9		KEEP(*(SORT(.native_##level[0-9]_task)));		\
10		KEEP(*(SORT(.native_##level[1-9][0-9]_task)));		\
11		KEEP(*(SORT(.native_##level[1-9][0-9][0-9]_task)));	\
12
13SECTION_PROLOGUE (native_pre_tasks,,)
14{
15	__native_tasks_start = .;
16	NATIVE_INIT_LEVEL(PRE_BOOT_1)
17	NATIVE_INIT_LEVEL(PRE_BOOT_2)
18	NATIVE_INIT_LEVEL(PRE_BOOT_3)
19	NATIVE_INIT_LEVEL(FIRST_SLEEP)
20	NATIVE_INIT_LEVEL(ON_EXIT)
21	__native_tasks_end = .;
22}
23