diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-25 15:27:58 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-25 15:27:58 -0600 |
commit | f42160a0908f69023b60321e33d00197b9f4c775 (patch) | |
tree | 174c94aa900857653d421519259c44467492df9c /nuttx/mm | |
parent | 93b40bab695acb0ee99e3845c95cf961e158e102 (diff) | |
download | nuttx-f42160a0908f69023b60321e33d00197b9f4c775.tar.gz nuttx-f42160a0908f69023b60321e33d00197b9f4c775.tar.bz2 nuttx-f42160a0908f69023b60321e33d00197b9f4c775.zip |
Bugfixes.. still integrating SAMA5 ELF with address environment
Diffstat (limited to 'nuttx/mm')
-rw-r--r-- | nuttx/mm/mm_graninit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/mm/mm_graninit.c b/nuttx/mm/mm_graninit.c index 673e65ac7..4905cb0b5 100644 --- a/nuttx/mm/mm_graninit.c +++ b/nuttx/mm/mm_graninit.c @@ -104,12 +104,12 @@ gran_common_initialize(FAR void *heapstart, size_t heapsize, uint8_t log2gran, /* Check parameters if debug is on. Note the size of a granule is * limited to 2**31 bytes and that the size of the granule must be greater - * than the alignment size. + * than or equal to the alignment size. */ DEBUGASSERT(heapstart && heapsize > 0 && log2gran > 0 && log2gran < 32 && - log2gran > log2align); + log2gran >= log2align); /* Get the aligned start of the heap */ |