diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-23 16:35:52 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-23 16:37:16 -0600 |
commit | 4fe901851582cf8b7745497231695cfff60e53df (patch) | |
tree | 16cffb0c9e598d4c7168bf28c34b422a0b5dbee5 /nuttx/mm/Makefile | |
parent | 7fbe288b3e1fda8640dd9e770b3faa3cd03853b1 (diff) | |
download | px4-nuttx-4fe901851582cf8b7745497231695cfff60e53df.tar.gz px4-nuttx-4fe901851582cf8b7745497231695cfff60e53df.tar.bz2 px4-nuttx-4fe901851582cf8b7745497231695cfff60e53df.zip |
include/nuttx/pgalloc.h and mm/mm_pgalloc.c: Add a simple page allocator based on the existing NuttX granule allocator. I am not certain if the granule allocator is sufficiently deterministic for long range use, but it gets get a page allocator in place for testing very quickly.
Diffstat (limited to 'nuttx/mm/Makefile')
-rw-r--r-- | nuttx/mm/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/mm/Makefile b/nuttx/mm/Makefile index 56b1157d2..f605fc5d4 100644 --- a/nuttx/mm/Makefile +++ b/nuttx/mm/Makefile @@ -69,6 +69,12 @@ endif ifeq ($(CONFIG_GRAN),y) CSRCS += mm_graninit.c mm_granreserve.c mm_granalloc.c mm_granmark.c CSRCS += mm_granfree.c mm_grancritical.c + +# A page allocator based on the granule allocator + +ifeq ($(CONFIG_MM_PGALLOC),y) +CSRCS += mm_pgalloc.c +endif endif BINDIR ?= bin |