Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/stand/kboot/libkboot/arch/aarch64/host_syscall.S
34914 views
1
#include <machine/asm.h>
2
3
/*
4
* Emulate the Linux system call interface. System call number in x8.
5
* Args in x0, x1, x2, x3, x4 and x5. Return in x0.
6
*/
7
ENTRY(host_syscall)
8
mov x8, x0
9
mov x0, x1
10
mov x1, x2
11
mov x2, x3
12
mov x3, x4
13
mov x4, x5
14
mov x5, x6
15
svc 0
16
ret
17
/* Note: We're exposing the raw return value to the caller */
18
END(host_syscall)
19
20
.section .note.GNU-stack,"",%progbits
21
22