2014-02-27 Joey Ye <joey.ye@arm.com>
* libnosys/sbrk.c (_sbrk): Remove TWS
This commit is contained in:
parent
4e3c8d9425
commit
065c7717b7
@ -1,7 +1,11 @@
|
|||||||
|
2014-02-27 Joey Ye <joey.ye@arm.com>
|
||||||
|
|
||||||
|
* libnosys/sbrk.c (_sbrk): Remove TWS
|
||||||
|
|
||||||
2014-02-11 Joey Ye <joey.ye@arm.com>
|
2014-02-11 Joey Ye <joey.ye@arm.com>
|
||||||
|
|
||||||
* arm/syscalls.c (_sbrk): Define as weak symbols.
|
* arm/syscalls.c (_sbrk): Define as weak symbols.
|
||||||
(_read, _write): Ditto.
|
(_read, _write): Ditto.
|
||||||
|
|
||||||
2014-02-03 Richard Earnshaw <rearnsha@arm.com>
|
2014-02-03 Richard Earnshaw <rearnsha@arm.com>
|
||||||
|
|
||||||
|
@ -6,16 +6,16 @@
|
|||||||
void *
|
void *
|
||||||
_sbrk (incr)
|
_sbrk (incr)
|
||||||
int incr;
|
int incr;
|
||||||
{
|
{
|
||||||
extern char end; /* Set by linker. */
|
extern char end; /* Set by linker. */
|
||||||
static char * heap_end;
|
static char * heap_end;
|
||||||
char * prev_heap_end;
|
char * prev_heap_end;
|
||||||
|
|
||||||
if (heap_end == 0)
|
if (heap_end == 0)
|
||||||
heap_end = & end;
|
heap_end = & end;
|
||||||
|
|
||||||
prev_heap_end = heap_end;
|
prev_heap_end = heap_end;
|
||||||
heap_end += incr;
|
heap_end += incr;
|
||||||
|
|
||||||
return (void *) prev_heap_end;
|
return (void *) prev_heap_end;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user