@ -5,6 +5,7 @@
*/
*/
# include <kernel_internal.h>
# include <kernel_internal.h>
# include <zephyr/spinlock.h>
# include <zephyr/spinlock.h>
# include <zephyr/llext/symbol.h>
bool z_spin_lock_valid ( struct k_spinlock * l )
bool z_spin_lock_valid ( struct k_spinlock * l )
{
{
@ -17,6 +18,7 @@ bool z_spin_lock_valid(struct k_spinlock *l)
}
}
return true ;
return true ;
}
}
EXPORT_SYMBOL ( z_spin_lock_valid ) ;
bool z_spin_unlock_valid ( struct k_spinlock * l )
bool z_spin_unlock_valid ( struct k_spinlock * l )
{
{
@ -33,15 +35,18 @@ bool z_spin_unlock_valid(struct k_spinlock *l)
}
}
return true ;
return true ;
}
}
EXPORT_SYMBOL ( z_spin_unlock_valid ) ;
void z_spin_lock_set_owner ( struct k_spinlock * l )
void z_spin_lock_set_owner ( struct k_spinlock * l )
{
{
l - > thread_cpu = _current_cpu - > id | ( uintptr_t ) _current ;
l - > thread_cpu = _current_cpu - > id | ( uintptr_t ) _current ;
}
}
EXPORT_SYMBOL ( z_spin_lock_set_owner ) ;
# ifdef CONFIG_KERNEL_COHERENCE
# ifdef CONFIG_KERNEL_COHERENCE
bool z_spin_lock_mem_coherent ( struct k_spinlock * l )
bool z_spin_lock_mem_coherent ( struct k_spinlock * l )
{
{
return arch_mem_coherent ( ( void * ) l ) ;
return arch_mem_coherent ( ( void * ) l ) ;
}
}
EXPORT_SYMBOL ( z_spin_lock_mem_coherent ) ;
# endif /* CONFIG_KERNEL_COHERENCE */
# endif /* CONFIG_KERNEL_COHERENCE */