From e0ab12bcbfd3ac270b4fb6b35cb8d33c2212ffe2 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 4 Feb 2002 14:02:15 +0000 Subject: Fix naming error in brk.c, enable faster malloc by default --- extra/Configs/Config.mips | 4 ++-- libc/sysdeps/linux/mips/brk.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/extra/Configs/Config.mips b/extra/Configs/Config.mips index 0e85cfe80..0e044e4da 100644 --- a/extra/Configs/Config.mips +++ b/extra/Configs/Config.mips @@ -97,9 +97,9 @@ LOCALE_DIR = "/usr/share/uClibc-locale/" # "malloc-930716" is from libc-5.3.12 and was/is the standard gnu malloc. # It is actually smaller than "malloc", at least on i386. Right now, it # only works on i386 (and maybe m68k) because it needs sbrk. -MALLOC = malloc-simple +#MALLOC = malloc-simple #MALLOC = malloc -#MALLOC = malloc-930716 +MALLOC = malloc-930716 # If you want to collect common syscall code into one function, set to this to # `true'. Set it to false otherwise. diff --git a/libc/sysdeps/linux/mips/brk.c b/libc/sysdeps/linux/mips/brk.c index 15026e102..82e44e461 100644 --- a/libc/sysdeps/linux/mips/brk.c +++ b/libc/sysdeps/linux/mips/brk.c @@ -21,9 +21,9 @@ #include #include -void *__curbrk = 0; +void *___brk_addr = 0; -int __brk (void *addr) +int brk (void *addr) { void *newbrk; @@ -37,7 +37,7 @@ int __brk (void *addr) : "$4", "$7"); newbrk = (void *) res; } - __curbrk = newbrk; + ___brk_addr = newbrk; if (newbrk < addr) { -- cgit v1.2.3