From 43ee769f540704ccfc4e2a12ba11ed4b6eece196 Mon Sep 17 00:00:00 2001 From: Carmelo Amoroso Date: Wed, 18 Jun 2008 15:52:41 +0000 Subject: Synch libc mips specific with trunk --- libc/sysdeps/linux/mips/brk.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/mips/brk.c') diff --git a/libc/sysdeps/linux/mips/brk.c b/libc/sysdeps/linux/mips/brk.c index cf48288f4..36620b210 100644 --- a/libc/sysdeps/linux/mips/brk.c +++ b/libc/sysdeps/linux/mips/brk.c @@ -21,10 +21,9 @@ #include #include -libc_hidden_proto(brk) - -void *__curbrk = 0; +void *__curbrk attribute_hidden = 0; +libc_hidden_proto(brk) int brk (void *addr) { void *newbrk; @@ -32,7 +31,7 @@ int brk (void *addr) { register long int res __asm__ ("$2"); - asm ("move\t$4,%2\n\t" + __asm__ ("move\t$4,%2\n\t" "li\t%0,%1\n\t" "syscall" /* Perform the system call. */ : "=r" (res) -- cgit v1.2.3