Skip to content

Commit

Permalink
retained_mem: add user thread support.
Browse files Browse the repository at this point in the history
Fixes #61848.

(cherry picked from commit c5b19cc)

Original-Signed-off-by: Laczen JMS <laczenjms@gmail.com>
GitOrigin-RevId: c5b19cc
Change-Id: I46ca78c737d74420312884a2b207a3b865691628
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/4810700
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Commit-Queue: Fabio Baltieri <fabiobaltieri@google.com>
Tested-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
Laczen authored and Chromeos LUCI committed Aug 24, 2023
1 parent 2ca68d3 commit bc0fe94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions drivers/retained_mem/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion include/zephyr/drivers/retained_mem.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bc0fe94

Please sign in to comment.