1
2
3
4
5
6
7
8
9
10
11
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
|
/* auto-generated by gen_syscalls.py, don't edit */
#ifndef Z_INCLUDE_SYSCALLS_UPDATEHUB_H
#define Z_INCLUDE_SYSCALLS_UPDATEHUB_H
#include <zephyr/tracing/tracing_syscall.h>
#ifndef _ASMLANGUAGE
#include <stdarg.h>
#include <syscall_list.h>
#include <zephyr/syscall.h>
#include <zephyr/linker/sections.h>
#ifdef __cplusplus
extern "C" {
#endif
extern void z_impl_updatehub_autohandler(void);
__pinned_func
static inline void updatehub_autohandler(void)
{
#ifdef CONFIG_USERSPACE
if (z_syscall_trap()) {
(void) arch_syscall_invoke0(K_SYSCALL_UPDATEHUB_AUTOHANDLER);
return;
}
#endif
compiler_barrier();
z_impl_updatehub_autohandler();
}
#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING
#define updatehub_autohandler() do { sys_port_trace_syscall_enter(K_SYSCALL_UPDATEHUB_AUTOHANDLER, updatehub_autohandler); updatehub_autohandler(); sys_port_trace_syscall_exit(K_SYSCALL_UPDATEHUB_AUTOHANDLER, updatehub_autohandler); } while(false)
#endif
#endif
extern enum updatehub_response z_impl_updatehub_probe(void);
__pinned_func
static inline enum updatehub_response updatehub_probe(void)
{
#ifdef CONFIG_USERSPACE
if (z_syscall_trap()) {
return (enum updatehub_response) arch_syscall_invoke0(K_SYSCALL_UPDATEHUB_PROBE);
}
#endif
compiler_barrier();
return z_impl_updatehub_probe();
}
#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING
#define updatehub_probe() ({ enum updatehub_response syscall__retval; sys_port_trace_syscall_enter(K_SYSCALL_UPDATEHUB_PROBE, updatehub_probe); syscall__retval = updatehub_probe(); sys_port_trace_syscall_exit(K_SYSCALL_UPDATEHUB_PROBE, updatehub_probe, syscall__retval); syscall__retval; })
#endif
#endif
extern enum updatehub_response z_impl_updatehub_update(void);
__pinned_func
static inline enum updatehub_response updatehub_update(void)
{
#ifdef CONFIG_USERSPACE
if (z_syscall_trap()) {
return (enum updatehub_response) arch_syscall_invoke0(K_SYSCALL_UPDATEHUB_UPDATE);
}
#endif
compiler_barrier();
return z_impl_updatehub_update();
}
#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING
#define updatehub_update() ({ enum updatehub_response syscall__retval; sys_port_trace_syscall_enter(K_SYSCALL_UPDATEHUB_UPDATE, updatehub_update); syscall__retval = updatehub_update(); sys_port_trace_syscall_exit(K_SYSCALL_UPDATEHUB_UPDATE, updatehub_update, syscall__retval); syscall__retval; })
#endif
#endif
extern int z_impl_updatehub_confirm(void);
__pinned_func
static inline int updatehub_confirm(void)
{
#ifdef CONFIG_USERSPACE
if (z_syscall_trap()) {
return (int) arch_syscall_invoke0(K_SYSCALL_UPDATEHUB_CONFIRM);
}
#endif
compiler_barrier();
return z_impl_updatehub_confirm();
}
#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING
#define updatehub_confirm() ({ int syscall__retval; sys_port_trace_syscall_enter(K_SYSCALL_UPDATEHUB_CONFIRM, updatehub_confirm); syscall__retval = updatehub_confirm(); sys_port_trace_syscall_exit(K_SYSCALL_UPDATEHUB_CONFIRM, updatehub_confirm, syscall__retval); syscall__retval; })
#endif
#endif
extern int z_impl_updatehub_reboot(void);
__pinned_func
static inline int updatehub_reboot(void)
{
#ifdef CONFIG_USERSPACE
if (z_syscall_trap()) {
return (int) arch_syscall_invoke0(K_SYSCALL_UPDATEHUB_REBOOT);
}
#endif
compiler_barrier();
return z_impl_updatehub_reboot();
}
#if defined(CONFIG_TRACING_SYSCALL)
#ifndef DISABLE_SYSCALL_TRACING
#define updatehub_reboot() ({ int syscall__retval; sys_port_trace_syscall_enter(K_SYSCALL_UPDATEHUB_REBOOT, updatehub_reboot); syscall__retval = updatehub_reboot(); sys_port_trace_syscall_exit(K_SYSCALL_UPDATEHUB_REBOOT, updatehub_reboot, syscall__retval); syscall__retval; })
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif
#endif /* include guard */
|