diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-13 12:24:08 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-13 12:24:08 -0600 |
commit | 2e9c52027796632578054de084670fa2ff0d2158 (patch) | |
tree | 97688902b9e6e5cef192e4651ec1044e6002e629 | |
parent | 477c3b7f82965c12b5e279f503920e7e3aecb964 (diff) | |
download | nuttx-2e9c52027796632578054de084670fa2ff0d2158.tar.gz nuttx-2e9c52027796632578054de084670fa2ff0d2158.tar.bz2 nuttx-2e9c52027796632578054de084670fa2ff0d2158.zip |
Fix a typo in use of a configuration setting
-rw-r--r-- | nuttx/mm/mm_sbrk.c | 2 | ||||
-rw-r--r-- | nuttx/mm/umm_sbrk.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/mm/mm_sbrk.c b/nuttx/mm/mm_sbrk.c index 28689b3ca..5d81250fa 100644 --- a/nuttx/mm/mm_sbrk.c +++ b/nuttx/mm/mm_sbrk.c @@ -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. diff --git a/nuttx/mm/umm_sbrk.c b/nuttx/mm/umm_sbrk.c index 19b945d3c..bb74385ee 100644 --- a/nuttx/mm/umm_sbrk.c +++ b/nuttx/mm/umm_sbrk.c @@ -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 && ... */ |