| 1 |
/* |
| 2 |
* libhugetlbfs - direct system call for s390 (64 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 |
lgr %r1,%r2 |
| 17 |
lgr %r2,%r3 |
| 18 |
lgr %r3,%r4 |
| 19 |
lgr %r4,%r5 |
| 20 |
lgr %r5,%r6 |
| 21 |
svc 0 |
| 22 |
br %r14 |
| 23 |
|
| 24 |
#if defined(__linux__) && defined(__ELF__) |
| 25 |
.section .note.GNU-stack,"",%progbits |
| 26 |
#endif |