kernel: Add k_mem_pool compatibility layer on top of k_heap
Add a shim layer implementing the legacy k_mem_pool APIs backed by a k_heap instead of the original implementation. Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
This commit is contained in:
parent
0dd83b8c2e
commit
8f0959c7b1
6 changed files with 115 additions and 2 deletions
|
@ -27,7 +27,11 @@
|
|||
#include <sys/util.h>
|
||||
#include <sys/mempool_base.h>
|
||||
#include <kernel_structs.h>
|
||||
#ifdef CONFIG_MEM_POOL_HEAP_BACKEND
|
||||
#include <mempool_heap.h>
|
||||
#else
|
||||
#include <mempool_sys.h>
|
||||
#endif
|
||||
#include <kernel_version.h>
|
||||
#include <random/rand32.h>
|
||||
#include <syscall.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue