Sound Open Firmware
Loading...
Searching...
No Matches
userspace_data.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2026 Intel Corporation.
4 */
5
14#ifndef __ZEPHYR_RTOS_USERSPACE_DATA_H__
15#define __ZEPHYR_RTOS_USERSPACE_DATA_H__
16
17#ifndef CONFIG_USERSPACE
18
19#define APP_TASK_BSS
20#define APP_TASK_DATA
21#define APP_SYSUSER_BSS
22#define APP_SYSUSER_DATA
23
24#else
25
26#include <zephyr/app_memory/app_memdomain.h>
27
28#define APP_TASK_BSS K_APP_BMEM(common_partition)
29#define APP_TASK_DATA K_APP_DMEM(common_partition)
30
31#ifdef CONFIG_SOF_USERSPACE_LL
32#define APP_SYSUSER_BSS K_APP_BMEM(sysuser_partition)
33#define APP_SYSUSER_DATA K_APP_DMEM(sysuser_partition)
34#else
35#define APP_SYSUSER_BSS
36#define APP_SYSUSER_DATA
37#endif
38
39#endif /* CONFIG_USERSPACE */
40
41#endif /* __ZEPHYR_RTOS_USERSPACE_DATA_H__ */