From a5604320418a13472940f4bdf11e56a9c197ff12 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Fri, 30 Oct 2020 00:23:04 -0400 Subject: command: Fix handling of buffer passing in args[] on 64bit mcu If the buffer pointer can't fit in a uint32_t then pass a relative buffer offset instead. This fixes buffer handling on 64bit linux mcus. Signed-off-by: Kevin O'Connor --- src/linux/console.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/linux/console.c') diff --git a/src/linux/console.c b/src/linux/console.c index 1c02b7a1..55688322 100644 --- a/src/linux/console.c +++ b/src/linux/console.c @@ -131,6 +131,12 @@ static struct task_wake console_wake; static uint8_t receive_buf[4096]; static int receive_pos; +void * +console_receive_buffer(void) +{ + return receive_buf; +} + // Process any incoming commands void console_task(void) -- cgit v1.2.3-70-g09d2