mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
Co-authored-by: Yixue Zhao <felicitia2010@gmail.com> Co-authored-by: stove <stove@rivosinc.com> Signed-off-by: Haorong Lu <ancientmodern4@gmail.com> --- - rebased - added a membarrier() to syscall table (fix authored by Cryolitia PukNgae) Signed-off-by: PukNgae Cryolitia <Cryolitia@gmail.com> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
37 lines
591 B
ArmAsm
37 lines
591 B
ArmAsm
/**
|
|
* This source contains emulation of syscalls
|
|
* that are not implemented in the riscv64 Linux kernel
|
|
*/
|
|
|
|
ENTRY(sys_open)
|
|
add a3, x0, a2
|
|
add a2, x0, a1
|
|
add a1, x0, a0
|
|
addi a0, x0, -100
|
|
j sys_openat
|
|
END(sys_open)
|
|
|
|
|
|
ENTRY(sys_mkdir)
|
|
add a3,x0, a2
|
|
add a2, x0, a1
|
|
add a1, x0, a0
|
|
addi a0, x0, -100
|
|
j sys_mkdirat
|
|
END(sys_mkdir)
|
|
|
|
|
|
ENTRY(sys_rmdir)
|
|
addi a2, x0, 0x200 // flags = AT_REMOVEDIR
|
|
add a1, x0, a0
|
|
addi a0, x0, -100
|
|
j sys_unlinkat
|
|
END(sys_rmdir)
|
|
|
|
|
|
ENTRY(sys_unlink)
|
|
addi a2, x0, 0 // flags = 0
|
|
add a1, x0, a0
|
|
addi a0, x0, -100
|
|
j sys_unlinkat
|
|
END(sys_unlink) |