kernel: Initialize kheap spinlock
Initializes the kheap spinlock when the kheap is initialized. Signed-off-by: Peter Mitsis <peter.mitsis@intel.com>
This commit is contained in:
parent
3a66b3853e
commit
11083fc049
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@
|
|||
void k_heap_init(struct k_heap *heap, void *mem, size_t bytes)
|
||||
{
|
||||
z_waitq_init(&heap->wait_q);
|
||||
heap->lock = (struct k_spinlock) {};
|
||||
sys_heap_init(&heap->heap, mem, bytes);
|
||||
|
||||
SYS_PORT_TRACING_OBJ_INIT(k_heap, heap);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue