svn commit: trunk/uClibc/libc/sysdeps/linux/mips
vapier at uclibc.org
vapier at uclibc.org
Thu Jan 5 03:28:33 UTC 2006
Author: vapier
Date: 2006-01-04 19:28:31 -0800 (Wed, 04 Jan 2006)
New Revision: 13101
Log:
sync Joseph S. Myers fixes from glibc for proper clobbers
Modified:
trunk/uClibc/libc/sysdeps/linux/mips/brk.c
Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/mips/brk.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/mips/brk.c 2006-01-05 03:24:47 UTC (rev 13100)
+++ trunk/uClibc/libc/sysdeps/linux/mips/brk.c 2006-01-05 03:28:31 UTC (rev 13101)
@@ -1,5 +1,5 @@
/* brk system call for Linux/MIPS.
- Copyright (C) 2000 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2005, 2006 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -31,10 +31,11 @@
register long int res __asm__ ("$2");
asm ("move\t$4,%2\n\t"
+ "li\t%0,%1\n\t"
"syscall" /* Perform the system call. */
: "=r" (res)
- : "0" (__NR_brk), "r" (addr)
- : "$4", "$7");
+ : "I" (__NR_brk), "r" (addr)
+ : "$4", "$7", __SYSCALL_CLOBBERS);
newbrk = (void *) res;
}
__curbrk = newbrk;
More information about the uClibc-cvs
mailing list