Lines Matching refs:wrap
238 wrap = ''
240 wrap += "extern %s z_impl_%s(%s);\n" % (func_type, func_name, decl_arglist)
241 wrap += "\n"
243 wrap += "__pinned_func\n"
244 wrap += "static inline %s %s(%s)\n" % (func_type, func_name, decl_arglist)
245 wrap += "{\n"
247 wrap += "#ifdef CONFIG_USERSPACE\n"
249 wrap += ("\t" + "uint64_t ret64;\n") if ret64 else ""
251 wrap += "\t" + "if (z_syscall_trap()) {\n"
256 wrap += "\t\t%s parm%d" % (union_decl(argtype, split), argnum)
258 wrap += " = { .val = %s };\n" % argname
261 wrap += ";\n" + "\t\t" + "va_copy(parm%d.val, %s);\n" % (argnum, argname)
273 wrap += "\t\t" + "uintptr_t more[] = {\n"
274 wrap += "\t\t\t" + (",\n\t\t\t".join(mrsh_args[5:])) + "\n"
275 wrap += "\t\t" + "};\n"
295 wrap += invoke
297 wrap += "\t\t" + "va_end(%s);\n" % argname
298 wrap += retcode
300 wrap += "\t" + "}\n"
301 wrap += "#endif\n"
309 wrap += "\t" + "compiler_barrier();\n"
310 wrap += "\t" + "%s%s;\n" % ("return " if func_type != "void" else "",
313 wrap += "}\n"
324 … wrap += syscall_tracer_with_return_template.format(func_type=func_type, func_name=func_name,
328 wrap += syscall_tracer_void_template.format(func_type=func_type, func_name=func_name,
332 return wrap