openamp: resource table: fixes resource table for ram_console section

in commit 1cd37f21f3 the global ram console buffer was replaced
with a pointer. This didn't work with the OpenAMP resource table
anymore (#75656).

Signed-off-by: Simon Maurer <mail@maurer.systems>
This commit is contained in:
Simon Maurer 2024-10-29 18:44:22 +01:00 committed by Mahesh Mahadevan
parent 02c8a5a80c
commit 18818c15cd
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include <zephyr/kernel.h> #include <zephyr/kernel.h>
#include <resource_table.h> #include <resource_table.h>
extern char ram_console[]; extern char ram_console_buf[];
#define __resource Z_GENERIC_SECTION(.resource_table) #define __resource Z_GENERIC_SECTION(.resource_table)
@ -68,7 +68,7 @@ static struct fw_resource_table __resource resource_table = {
#if defined(CONFIG_RAM_CONSOLE) #if defined(CONFIG_RAM_CONSOLE)
.cm_trace = { .cm_trace = {
RSC_TRACE, RSC_TRACE,
(uint32_t)ram_console, CONFIG_RAM_CONSOLE_BUFFER_SIZE, 0, (uint32_t)ram_console_buf, CONFIG_RAM_CONSOLE_BUFFER_SIZE, 0,
"Zephyr_log", "Zephyr_log",
}, },
#endif #endif