syscall: Export all emitted syscalls, enabling them for extensions
Linkable loadable extensions can only use syscalls if they are exported via EXPORT_SYSCALL (or EXPORT_SYMBOL). Instead of enabling used syscalls one by one, this patch exports all of them automatically via `gen_syscalls.py`. If CONFIG_LLEXT=n, the section where the exported symbols live is discarded, so it should be a non-op when llext is not enabled. This patch also removes the now redundant EXPORT_SYSCALL macro. Note that EXPORT_SYMBOL is still useful on different situations (and is indeed used by the code generated by `gen_syscalls.py`). Signed-off-by: Ederson de Souza <ederson.desouza@intel.com>
This commit is contained in:
parent
1680223003
commit
67bb6db3f8
4 changed files with 9 additions and 14 deletions
|
@ -196,7 +196,6 @@ int z_impl_k_mutex_lock(struct k_mutex *mutex, k_timeout_t timeout)
|
|||
|
||||
return -EAGAIN;
|
||||
}
|
||||
EXPORT_SYSCALL(k_mutex_lock);
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
static inline int z_vrfy_k_mutex_lock(struct k_mutex *mutex,
|
||||
|
@ -282,7 +281,6 @@ k_mutex_unlock_return:
|
|||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYSCALL(k_mutex_unlock);
|
||||
|
||||
#ifdef CONFIG_USERSPACE
|
||||
static inline int z_vrfy_k_mutex_unlock(struct k_mutex *mutex)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue