Skip to content

Commit

Permalink
freertos: io: fix IAR compile error due to 'void *' variable
Browse files Browse the repository at this point in the history
Fix EWARM compilation error due to void pointer usage.
This fix has already been implemented for the generic system, but
was missing for the FreeRTOS.

Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
  • Loading branch information
arnopo committed Jan 24, 2022
1 parent dc865bf commit af82d35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system/freertos/io.c
Expand Up @@ -15,10 +15,10 @@ void metal_sys_io_mem_map(struct metal_io_region *io)
{
unsigned long p;
size_t psize;
void *va;
size_t *va;

va = io->virt;
psize = io->size;
psize = (size_t)io->size;
if (psize) {
if (psize >> io->page_shift)
psize = (size_t)1 << io->page_shift;
Expand Down

0 comments on commit af82d35

Please sign in to comment.