Changeset 19efa9a0 in rtems


Ignore:
Timestamp:
Mar 28, 2020, 6:24:07 PM (2 months ago)
Author:
G S Niteesh Babu <niteesh.gs@…>
Branches:
master
Children:
d35722e6
Parents:
840f21d
git-author:
G S Niteesh Babu <niteesh.gs@…> (03/28/20 18:24:07)
git-committer:
Joel Sherrill <joel@…> (04/10/20 13:27:18)
Message:

bsp/raspberrypi: Fix build warnings.

1) _Memory_Initialize makes pointer from integer

without a cast.

2) printf format error, expects %u but %lu provided.

Location:
bsps/arm/raspberrypi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/raspberrypi/irq/irq.c

    r840f21d r19efa9a0  
    3232#include <rtems/bspIo.h>
    3333#include <strings.h>
     34
     35#include <rtems/inttypes.h>
    3436
    3537#ifdef RTEMS_SMP
     
    158160void bsp_interrupt_handler_default(rtems_vector_number vector)
    159161{
    160     printk("spurious interrupt: %lu\n", vector);
     162    printk("spurious interrupt: %" PRIdrtems_vector_number "\n", vector);
    161163}
    162164
  • bsps/arm/raspberrypi/start/bspstarthooks.c

    r840f21d r19efa9a0  
    185185  _Memory_Initialize(
    186186    &_Memory_Areas[0],
     187    (void *)
    187188    raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].begin,
     189    (void *)
    188190    raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].end
    189191  );
Note: See TracChangeset for help on using the changeset viewer.