syscall: Add support for syscall_ret64_arg2
Add support for syscall returning 64 bit value with 2 arguments. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
41dd6622ce
commit
3808ca8e6e
1 changed files with 10 additions and 0 deletions
|
@ -258,6 +258,16 @@ static inline u64_t _syscall_ret64_invoke1(u32_t arg1, u32_t call_id)
|
|||
_arch_syscall_invoke2(arg1, (u32_t)&ret, call_id);
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline u64_t _syscall_ret64_invoke2(u32_t arg1, u32_t arg2,
|
||||
u32_t call_id)
|
||||
{
|
||||
u64_t ret;
|
||||
|
||||
_arch_syscall_invoke3(arg1, arg2, (u32_t)&ret, call_id);
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_USERSPACE */
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue