diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-10 15:55:36 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-10 15:55:36 -0600 |
commit | 7b3a98b2ec57f8c56a1669b818d03dfcd1a84fb2 (patch) | |
tree | 776264ed920f68eed300648dffe198e286495000 /nuttx/arch/arm/include/arch.h | |
parent | 22c64f6c542675d4865d2a013468089c92f43869 (diff) | |
download | px4-nuttx-7b3a98b2ec57f8c56a1669b818d03dfcd1a84fb2.tar.gz px4-nuttx-7b3a98b2ec57f8c56a1669b818d03dfcd1a84fb2.tar.bz2 px4-nuttx-7b3a98b2ec57f8c56a1669b818d03dfcd1a84fb2.zip |
Add logic to initialize the per-process user heap when each user process is started
Diffstat (limited to 'nuttx/arch/arm/include/arch.h')
-rw-r--r-- | nuttx/arch/arm/include/arch.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nuttx/arch/arm/include/arch.h b/nuttx/arch/arm/include/arch.h index 2f1991622..02e66aaf4 100644 --- a/nuttx/arch/arm/include/arch.h +++ b/nuttx/arch/arm/include/arch.h @@ -133,9 +133,19 @@ do { \ struct group_addrenv_s { + /* Level 1 page table entries for each group section */ + FAR uintptr_t *text[ARCH_TEXT_NSECTS]; FAR uintptr_t *data[ARCH_DATA_NSECTS]; FAR uintptr_t *heap[ARCH_HEAP_NSECTS]; + + /* Initial heap allocation (in bytes). This exists only provide an + * indirect path for passing the size of the initial heap to the heap + * initialization logic. These operations are separated in time and + * architecture. REVISIT: I would like a better way to do this. + */ + + size_t heapsize; }; typedef struct group_addrenv_s group_addrenv_t; @@ -153,9 +163,7 @@ struct save_addrenv_s { FAR uint32_t text[ARCH_TEXT_NSECTS]; FAR uint32_t data[ARCH_DATA_NSECTS]; -#if 0 /* Not yet implemented */ FAR uint32_t heap[ARCH_HEAP_NSECTS]; -#endif }; typedef struct save_addrenv_s save_addrenv_t; |