Skip to content

zephyr: lib: alloc.c: Add heap for ARM64 platforms - #7464

Merged
dbaluta merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:arm64_heap
Apr 20, 2023
Merged

dbaluta merged 1 commit into
thesofproject:mainfrom
LaurentiuM1234:arm64_heap

Conversation

@LaurentiuM1234

@LaurentiuM1234 LaurentiuM1234 commented Apr 19, 2023 •

Copy link
Copy Markdown
Contributor

This commit places the heap inside the .bss section for all ARM64 platforms.

Please see #7192 for PR dependency graph.

This commit places the heap inside the .bss section for
all ARM64 platforms.

Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@nxp.com>
Comment thread zephyr/lib/alloc.c
#define HEAPMEM_SIZE (256 * 1024)
char __aligned(8) heapmem[HEAPMEM_SIZE];

#elif defined(CONFIG_ARM64)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering whether this should be before CONFIG_ARCH_POSIX, but the two seem mutually exclusive, so this is ok.

@dbaluta
dbaluta merged commit 6aa71dd into thesofproject:main Apr 20, 2023
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.

4 participants