Welcome to mirror list, hosted at ThFree Co, Russian Federation.

syscall-common-ppc64.S « syscalls « ppc64 « arch « criu - github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6d2a8d2854efbfee2b66f6b3b655e476c7c4c7c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "common/asm/linkage.h"
#include <asm/unistd.h>		/* for __NR_ipc */

#define SYSCALL(name, opcode)		\
	ENTRY(name);			\
	li	r0, opcode;		\
	b	__syscall_common;	\
	END(name)

	.text
	.align	4

ENTRY(__syscall_common)
	sc
	bnslr+		/* if no error return to LR */
	neg	r3,r3	/* r3 = -r3 to return -errno value */
	blr
END(__syscall_common)

ENTRY(__cr_restore_rt)
	li	r0, __NR_rt_sigreturn
	b	__syscall_common
END(__cr_restore_rt)