Commit 3808ca8e authored by Krzysztof Chruściński's avatar Krzysztof Chruściński Committed by Andrew Boie
Browse files

syscall: Add support for syscall_ret64_arg2



Add support for syscall returning 64 bit value with 2 arguments.

Signed-off-by: default avatarKrzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
parent 41dd6622
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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