gdb: ringbuffer: Fix void pointer arithmetic

If CONFIG_GDB_DEBUG is set, the build is currently failing
because of these void pointer arithmentic operations.
This patch fixes that.

Signed-off-by: Dragos Tarcatu <dragos_tarcatu@mentor.com>
This commit is contained in:
Dragos Tarcatu 2019-12-16 18:33:06 +02:00 committed by Liam Girdwood
parent 9efdea32d7
commit 6f549a6f5c
1 changed files with 3 additions and 3 deletions

View File

@ -10,9 +10,9 @@
#define BUFFER_OFFSET 0x120
volatile struct ring * const rx = (void *) SRAM_DEBUG_BASE;
volatile struct ring * const tx = (void *) SRAM_DEBUG_BASE + BUFFER_OFFSET;
volatile struct ring * const debug = (void *) SRAM_DEBUG_BASE +
(2*BUFFER_OFFSET);
volatile struct ring * const tx = (void *)(SRAM_DEBUG_BASE + BUFFER_OFFSET);
volatile struct ring * const debug = (void *)(SRAM_DEBUG_BASE +
(2 * BUFFER_OFFSET));
void init_buffers(void)
{