aboutsummaryrefslogtreecommitdiff
path: root/sys-elf_s390.S
blob: 40630d189b2ac5d216725c0ce681e14cf251ceae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * libhugetlbfs - direct system call for s390 (31 bit)
 *
 * Copyright IBM Corp. 2012
 * Author(s): Gerald Schaefer <gerald.schaefer@de.ibm.com>
 *
 * NOTE: Only 4 syscall parameters supported w/o stack access, but this is
 *       sufficient for the syscalls used so far (__NR_write, __NR_kill and
 *       __NR_getpid).
 */

	.text

	.globl	direct_syscall
direct_syscall:
	lr	%r1,%r2
	lr	%r2,%r3
	lr	%r3,%r4
	lr	%r4,%r5
	lr	%r5,%r6
	svc	0
	br	%r14