forked from Imagelibrary/rtems
bsp/raspberrypi: Fix build warnings.
1) _Memory_Initialize makes pointer from integer without a cast. 2) printf format error, expects %u but %lu provided.
This commit is contained in:
committed by
Joel Sherrill
parent
840f21ddc7
commit
19efa9a0b9
@@ -32,6 +32,8 @@
|
|||||||
#include <rtems/bspIo.h>
|
#include <rtems/bspIo.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
|
|
||||||
|
#include <rtems/inttypes.h>
|
||||||
|
|
||||||
#ifdef RTEMS_SMP
|
#ifdef RTEMS_SMP
|
||||||
#include <rtems/score/smp.h>
|
#include <rtems/score/smp.h>
|
||||||
#include <rtems/score/smpimpl.h>
|
#include <rtems/score/smpimpl.h>
|
||||||
@@ -157,7 +159,7 @@ void bsp_interrupt_vector_disable(rtems_vector_number vector)
|
|||||||
|
|
||||||
void bsp_interrupt_handler_default(rtems_vector_number vector)
|
void bsp_interrupt_handler_default(rtems_vector_number vector)
|
||||||
{
|
{
|
||||||
printk("spurious interrupt: %lu\n", vector);
|
printk("spurious interrupt: %" PRIdrtems_vector_number "\n", vector);
|
||||||
}
|
}
|
||||||
|
|
||||||
rtems_status_code bsp_interrupt_facility_initialize(void)
|
rtems_status_code bsp_interrupt_facility_initialize(void)
|
||||||
|
|||||||
@@ -184,7 +184,9 @@ static void bsp_memory_initialize(void)
|
|||||||
{
|
{
|
||||||
_Memory_Initialize(
|
_Memory_Initialize(
|
||||||
&_Memory_Areas[0],
|
&_Memory_Areas[0],
|
||||||
|
(void *)
|
||||||
raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].begin,
|
raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].begin,
|
||||||
|
(void *)
|
||||||
raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].end
|
raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].end
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user