diff options
Diffstat (limited to 'nuttx/sched/init/os_start.c')
-rw-r--r-- | nuttx/sched/init/os_start.c | 10 |
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 */ |