kernel: fix _kernel argument to arch_mem_coherent

Argument to arch_mem_coherent() is a pointer so pass
a pointer to _kernel.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-02-02 16:12:15 -08:00 committed by Anas Nashif
commit 079bc64c16

View file

@ -166,7 +166,7 @@ static void bg_thread_main(void *unused1, void *unused2, void *unused3)
z_init_static_threads();
#ifdef KERNEL_COHERENCE
__ASSERT_NO_MSG(arch_mem_coherent(_kernel));
__ASSERT_NO_MSG(arch_mem_coherent(&_kernel));
#endif
#ifdef CONFIG_SMP