9
0
Fork 0

Fix a typo in use of a configuration setting

This commit is contained in:
Gregory Nutt 2014-09-13 12:24:08 -06:00
parent 477c3b7f82
commit 2e9c520277
2 changed files with 3 additions and 1 deletions

View File

@ -73,8 +73,10 @@
* program break is returned by sbrk(0).
*
* Input Parameters:
* heap - A reference to the data structure that defines this heap.
* incr - Specifies the number of bytes to add or to remove from the
* space allocated for the process.
maxbreak - The maximum permissible break address.
*
* Returned Value:
* Upon successful completion, sbrk() returns the prior break value.

View File

@ -107,7 +107,7 @@
FAR void *sbrk(intptr_t incr)
{
return mm_sbrk(USR_HEAP, incr, CONFIG_ARCH_STACK_NPAGES << MM_PGSHIFT);
return mm_sbrk(USR_HEAP, incr, CONFIG_ARCH_HEAP_NPAGES << MM_PGSHIFT);
}
#endif /* CONFIG_ARCH_ADDRENV && CONFIG_MM_PGALLOC && ... */