-
Notifications
You must be signed in to change notification settings - Fork 8.4k
openamp: resource table: fixes resource table to work with ram_console section #77293
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
Conversation
|
Hi @mausys can you make sure that the CI is all green? |
c0826c4 to
d257d64
Compare
d257d64 to
3272b1f
Compare
|
This change is also included in #79605 |
|
cc @alxlastur @Zhiqiang-Hou |
lib/open-amp/resource_table.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is'nt it sufficient to just use the extern to get the already defined ram_console_buf. This has the RAM_CONOLE_BUF_ATTR defined for it which should place it in the appropriate RAM section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ram_console_buf in ram_console.c is only used when CONFIG_RAM_CONSOLE_BUFFER_SECTION is disabled. That's why I changed it in ram_console.c to not wasting memory.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the condition CONFIG_RAM_CONSOLE_BUFFER_SECTION, the RAM_CONOLE_BUF_ATTR is for putting it in the RAM section, so no memory wasting. keep the ram_console_buf for both conditions to avoid to determine the RAM section condition in the caller.
drivers/console/ram_console.c
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this and directly use extern char ram_console_buf[]; in lib/open-amp/resource_table.c.
5a47c85 to
09ecb39
Compare
in commit 1cd37f2 the global ram console buffer was replaced with a pointer. This didn't work with the OpenAMP resource table anymore (zephyrproject-rtos#75656). Signed-off-by: Simon Maurer <[email protected]>
09ecb39 to
37d5bd1
Compare
|
@carlocaione, can you help review this again. |
|
@carlocaione , can you help take a look. This bug fix can be included in 4.0 release |
in commit 1cd37f2 the global ram console buffer was replaced with a pointer. This didn't work with the OpenAMP resource table anymore (#75656). This commit removes also the unnecessary console buffer, if a ram console device tree node is configured.
Fixes #75656