From 18818c15cd901fb431dfb3d6847225be9f05172a Mon Sep 17 00:00:00 2001 From: Simon Maurer Date: Tue, 29 Oct 2024 18:44:22 +0100 Subject: [PATCH] openamp: resource table: fixes resource table for ram_console section in commit 1cd37f21f3a 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 --- lib/open-amp/resource_table.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/open-amp/resource_table.c b/lib/open-amp/resource_table.c index a857c3ca05f..1bc8d5cb6eb 100644 --- a/lib/open-amp/resource_table.c +++ b/lib/open-amp/resource_table.c @@ -29,7 +29,7 @@ #include #include -extern char ram_console[]; +extern char ram_console_buf[]; #define __resource Z_GENERIC_SECTION(.resource_table) @@ -68,7 +68,7 @@ static struct fw_resource_table __resource resource_table = { #if defined(CONFIG_RAM_CONSOLE) .cm_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", }, #endif