Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SKIP SOF_TEST][WiP][DNM] IMR: illustrate running in IMR #9522

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lyakh
Copy link
Collaborator

@lyakh lyakh commented Sep 27, 2024

very raw, still work in progress, not fully functional

Make the link helper collect any non-default executable sections and
link them at 0 to be relocated at run-time to IMR / DRAM addresses.
Also tell Zephyr to treat any such sections as detached.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
A simple test to test minimal code as running in IMR. Some pointer
loading and function calling is working already, but some issues
remain. Also note, that we don't support FLIX instructions yet,
this has been tested with -mno-generate-flix.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
void *drc_who_called(void)
{
return my_addr();
//return __builtin_return_address(0);
Copy link
Member

Choose a reason for hiding this comment

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

out of interest, why wont the builtin work ? Its not relying on linker script to set address is it ?

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.

2 participants