Browse Source
This is an integral part of userspace and cannot be used on its own. Fold into the main userspace configuration. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>pull/13709/head
28 changed files with 57 additions and 77 deletions
@ -1,2 +0,0 @@ |
|||||||
zephyr_library() |
|
||||||
zephyr_library_sources(app_memdomain.c) |
|
@ -1,8 +0,0 @@ |
|||||||
menu "General Kernel Options" |
|
||||||
|
|
||||||
config APP_SHARED_MEM |
|
||||||
bool "Application shared memory with app_memory" |
|
||||||
help |
|
||||||
This is a wrapper around app_memory to simplify usage. |
|
||||||
|
|
||||||
endmenu |
|
@ -1,24 +0,0 @@ |
|||||||
#include <zephyr.h> |
|
||||||
#include <init.h> |
|
||||||
#include <app_memory/app_memdomain.h> |
|
||||||
#include <string.h> |
|
||||||
#include <misc/__assert.h> |
|
||||||
|
|
||||||
extern char __app_shmem_regions_start[]; |
|
||||||
extern char __app_shmem_regions_end[]; |
|
||||||
|
|
||||||
static int app_shmem_bss_zero(struct device *unused) |
|
||||||
{ |
|
||||||
struct z_app_region *region, *end; |
|
||||||
|
|
||||||
end = (struct z_app_region *)&__app_shmem_regions_end; |
|
||||||
region = (struct z_app_region *)&__app_shmem_regions_start; |
|
||||||
|
|
||||||
for ( ; region < end; region++) { |
|
||||||
(void)memset(region->bss_start, 0, region->bss_size); |
|
||||||
} |
|
||||||
|
|
||||||
return 0; |
|
||||||
} |
|
||||||
|
|
||||||
SYS_INIT(app_shmem_bss_zero, APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT); |
|
Loading…
Reference in new issue