summaryrefslogtreecommitdiff
path: root/nuttx/sched/init
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-08-25 11:18:32 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-08-25 11:18:32 -0600
commit28928fed5e3f5ef6b3ff882cda1fb448ce76196b (patch)
tree6fab8a2f346a4e8e2af6771e2f7c0bbdb897771a /nuttx/sched/init
parent59d9019f45c3e0229b12eda8a57118e6e69f99ea (diff)
downloadnuttx-28928fed5e3f5ef6b3ff882cda1fb448ce76196b.tar.gz
nuttx-28928fed5e3f5ef6b3ff882cda1fb448ce76196b.tar.bz2
nuttx-28928fed5e3f5ef6b3ff882cda1fb448ce76196b.zip
Cortex-A/SAMA5 address environment support is code complete (untested)
Diffstat (limited to 'nuttx/sched/init')
-rw-r--r--nuttx/sched/init/os_start.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/sched/init/os_start.c b/nuttx/sched/init/os_start.c
index be319ca02..fdd308dfb 100644
--- a/nuttx/sched/init/os_start.c
+++ b/nuttx/sched/init/os_start.c
@@ -358,6 +358,16 @@ void os_start(void)
up_allocate_kheap(&heap_start, &heap_size);
kmm_initialize(heap_start, heap_size);
#endif
+
+#ifdef CONFIG_MM_PGALLOC
+ /* If there is a page allocator in the configuration, then get the page
+ * heap information from the platform-specific code and configure the
+ * page allocator.
+ */
+
+ up_allocate_pgheap(&heap_start, &heap_size);
+ mm_pginitialize(heap_start, heap_size);
+#endif
}
/* Initialize tasking data structures */