mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(__brk): Use __SYSCALL_CLOBBERS.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
/* brk system call for Linux/MIPS.
|
/* brk system call for Linux/MIPS.
|
||||||
Copyright (C) 2000, 2005 Free Software Foundation, Inc.
|
Copyright (C) 2000, 2005, 2006 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -41,7 +41,7 @@ __brk (void *addr)
|
|||||||
"syscall" /* Perform the system call. */
|
"syscall" /* Perform the system call. */
|
||||||
: "=r" (res)
|
: "=r" (res)
|
||||||
: "I" (SYS_ify (brk)), "r" (addr)
|
: "I" (SYS_ify (brk)), "r" (addr)
|
||||||
: "$4", "$7");
|
+ : "$4", "$7", __SYSCALL_CLOBBERS);
|
||||||
newbrk = (void *) res;
|
newbrk = (void *) res;
|
||||||
}
|
}
|
||||||
__curbrk = newbrk;
|
__curbrk = newbrk;
|
||||||
|
Reference in New Issue
Block a user