retained_mem: add user thread support.

Fixes #61848.

Signed-off-by: Laczen JMS <laczenjms@gmail.com>
This commit is contained in:
Laczen JMS 2023-08-24 15:11:58 +02:00 committed by Fabio Baltieri
commit c5b19cc44f
2 changed files with 2 additions and 1 deletions

View file

@ -3,5 +3,6 @@
zephyr_syscall_header(${ZEPHYR_BASE}/include/zephyr/drivers/retained_mem.h)
zephyr_library()
zephyr_library_sources_ifdef(CONFIG_USERSPACE retained_mem_handlers.c)
zephyr_library_sources_ifdef(CONFIG_RETAINED_MEM_NRF_GPREGRET retained_mem_nrf_gpregret.c)
zephyr_library_sources_ifdef(CONFIG_RETAINED_MEM_ZEPHYR_RAM retained_mem_zephyr_ram.c)

View file

@ -75,7 +75,7 @@ typedef int (*retained_mem_clear_api)(const struct device *dev);
*
* Note that drivers must implement all functions, none of the functions are optional.
*/
struct retained_mem_driver_api {
__subsystem struct retained_mem_driver_api {
retained_mem_size_api size;
retained_mem_read_api read;
retained_mem_write_api write;