libk  Diff

Differences From Artifact [4315e80d93]:

To Artifact [f22252d79e]:


12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

#ifdef KFenv_posix
#	include <posix.h>
#else
	Knoimpl(k_platform_syscall)
#endif

extern void k_platform_syscall_raw (
		k_platform_syscall_return* return_slot,
		k_platform_syscall_error*  error_no_slot,
		enum k_platform_syscall    syscall_no,
		u8                         valency,
		s64*                       args);

struct k_platform_syscall_answer
k_platform_syscall(enum k_platform_syscall call, u8 valency, s64 args[]) {
	struct k_platform_syscall_answer answer;

	k_platform_syscall_raw
		(&answer.ret,
		 &answer.error,
		 call, valency, args);

	return answer;
}







|
|
|
|
|
|

|
|









12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

#ifdef KFenv_posix
#	include <posix.h>
#else
	Knoimpl(k_platform_syscall)
#endif

volatile extern void k_platform_syscall_raw (
		volatile k_platform_syscall_return* return_slot,
		volatile k_platform_syscall_error*  error_no_slot,
		volatile enum k_platform_syscall    syscall_no,
		volatile u8                         valency,
		volatile s64*                       args);

volatile struct k_platform_syscall_answer
k_platform_syscall(volatile enum k_platform_syscall call, volatile u8 valency, volatile s64 args[]) {
	struct k_platform_syscall_answer answer;

	k_platform_syscall_raw
		(&answer.ret,
		 &answer.error,
		 call, valency, args);

	return answer;
}