diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390/brk.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/s390/brk.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/brk.c b/sysdeps/unix/sysv/linux/s390/brk.c index f2baf2af71..ae6af21784 100644 --- a/sysdeps/unix/sysv/linux/s390/brk.c +++ b/sysdeps/unix/sysv/linux/s390/brk.c @@ -35,14 +35,13 @@ __brk (void *addr) void *newbrk; { - register long r0 asm ("2"); register void *__addr asm("2") = addr; asm ("svc %b1\n\t" /* call sys_brk */ - : "=d" (r0) + : "=d" (__addr) : "I" (SYS_ify(brk)), "r" (__addr) - : _svc_clobber ); - newbrk = (void *) r0; + : "cc", "memory" ); + newbrk = __addr; } __curbrk = newbrk; |