<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#include &lt;machine/asm.h&gt;

/*
 * Emulate the Linux system call interface. System call number in x8.
 * Args in x0, x1, x2, x3, x4 and x5. Return in x0.
 */
ENTRY(host_syscall)
	mov	x8, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	mov	x5, x6
	svc	0
	ret
/* Note: We're exposing the raw return value to the caller */
END(host_syscall)
</pre></body></html>