Skip to content

Conversation

@gustavonihei
Copy link
Contributor

@gustavonihei gustavonihei commented Jan 16, 2023

Summary

This PR intends to enable a dedicated kernel heap on NuttX Flat mode by extending MM_KERNEL_HEAP feature.

By separating the kernel and userspace heaps, the user is granted more control over the heaps placement within the memory hierarchy, which is specially useful for microcontrollers that provide External RAM.

Besides segregating the kernel and userspace allocations, this feature does not prevent the userspace from accessing the kernel heap under BUILD_FLAT.

MM_KERNEL_HEAP support under BUILD_PROTECTED and BUILD_KERNEL should be unaffected.

Impact

NuttX memory management subsystem is now extended with a new feature, enabled only on specific combination of Kconfig options.

Testing

Successful execution of ostest in esp32-devkitc:psram_usrheap defconfig, to be submitted later.

Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
@gustavonihei
Copy link
Contributor Author

CI failure is unrelated to this PR. Prior to rebasing it passed successfully, should we proceed with the merge or wait until #8155 is merged?

@xiaoxiang781216
Copy link
Contributor

let's ignore the unrelated ci broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants