aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 14:39:44 -0400
committerMarti Bolivar <mbolivar@leaflabs.com>2011-09-07 23:34:24 -0400
commit3c0a3ee2516e6709484a922b8298c84eccf87490 (patch)
treef245144d9759921907a66df1300083b4d60ae911 /contrib
parentaa4f3b6645a17c98aa4679323208ed8636ba89b1 (diff)
syscalls.c: Bugfix _sbrk() implementation.
Fix _sbrk() implementation so it properly rejects negative arguments which would send the program break below the heap start. Fix incorrect check against argument causing heap overflow. Also set errno properly to ENOMEM when the call fails. Beginning and end of the heap are now determined by HEAP_START and HEAP_END macros. Their current values seem to work OK for heaps on the internal SRAM, but they'll need to get generalized for Maple Native.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions