kernel: add k_mem_map() and related defines

This will be the interface for mapping memory in the kernel's
part of the address space, which is guaranteed to be persistent
regardless of what thread is scheduled.

Further code for specifically managing virtual memory will end up in
kernel/mmu.c.

Further defintions for memory management in general will end up
in sys/mem_manage.h.

Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2020-06-26 16:17:00 -07:00 committed by Carles Cufí
commit 06cf6d27f7
3 changed files with 193 additions and 0 deletions

View file

@ -39,6 +39,7 @@ set_target_properties(
target_sources_ifdef(CONFIG_STACK_CANARIES kernel PRIVATE compiler_stack_protect.c)
target_sources_ifdef(CONFIG_SYS_CLOCK_EXISTS kernel PRIVATE timeout.c timer.c)
target_sources_ifdef(CONFIG_ATOMIC_OPERATIONS_C kernel PRIVATE atomic_c.c)
target_sources_if_kconfig( kernel PRIVATE mmu.c)
target_sources_if_kconfig( kernel PRIVATE poll.c)
if(${CONFIG_MEM_POOL_HEAP_BACKEND})