kernel: allow up to 6 arguments for system calls
A quick look at "man syscall" shows that in Linux, all architectures support at least 6 argument system calls, with a few supporting 7. We can at least do 6 in Zephyr. x86 port modified to use EBP register to carry the 6th system call argument. Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
83643a2266
commit
1956f09590
5 changed files with 43 additions and 14 deletions
|
@ -3917,6 +3917,10 @@ static inline int _is_user_context(void)
|
|||
}
|
||||
|
||||
/* Interfaces for invoking system calls */
|
||||
static inline u32_t _arch_syscall_invoke6(u32_t arg1, u32_t arg2, u32_t arg3,
|
||||
u32_t arg4, u32_t arg5, u32_t arg6,
|
||||
u32_t call_id);
|
||||
|
||||
static inline u32_t _arch_syscall_invoke5(u32_t arg1, u32_t arg2, u32_t arg3,
|
||||
u32_t arg4, u32_t arg5,
|
||||
u32_t call_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue