mirror of https://github.com/thesofproject/sof.git
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:
parent
9efdea32d7
commit
6f549a6f5c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue