Debian Codegraph @

sys-elf_s390.S

raw
1 /*
2 * libhugetlbfs - direct system call for s390 (31 bit)
3 *
4 * Copyright IBM Corp. 2012
5 * Author(s): Gerald Schaefer <[email protected]>
6 *
7 * NOTE: Only 4 syscall parameters supported w/o stack access, but this is
8 * sufficient for the syscalls used so far (__NR_write, __NR_kill and
9 * __NR_getpid).
10 */
11
12 .text
13
14 .globl direct_syscall
15 direct_syscall:
16 lr %r1,%r2
17 lr %r2,%r3
18 lr %r3,%r4
19 lr %r4,%r5
20 lr %r5,%r6
21 svc 0
22 br %r14
23
24 #if defined(__linux__) && defined(__ELF__)
25 .section .note.GNU-stack,"",%progbits
26 #endif