[PATCH] arm/raspberrypi: Fix linker map

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jul 29 06:16:42 UTC 2019


On 29/07/2019 08:12, Chris Johns wrote:
> On 29/7/19 4:08 pm, Sebastian Huber wrote:
>> On 29/07/2019 08:04, Chris Johns wrote:
>>>> The new one is probably:
>>>>
>>>> 0x00200080
>>>>
>>>> I am not sure about the 0x80 tail, it should be the same as it was previously.
>>> Better but interrupts?
>>>
>>> The address 0x00200000 works with hello but ticker prints the "TEST VERSION"
>>> banner and then nothing more.
>> Then the vector table needs to be probably at 0x0.  Not really a great position
>> if you have a NULL pointer access.
>>
> Agreed.
> 
> Can you set the vector base on this ARM? If you can is that missing from this BSP?

You can try this (v2 of the patch moves the vector base to 0, but it 
would be better to have a NULL pointer protection):

diff --git a/bsps/arm/raspberrypi/start/bspstarthooks.c 
b/bsps/arm/raspberrypi/start/bspstarthooks.c
index b39c8b1959..3f8c680bc0 100644
--- a/bsps/arm/raspberrypi/start/bspstarthooks.c
+++ b/bsps/arm/raspberrypi/start/bspstarthooks.c
@@ -87,7 +87,7 @@ void BSP_START_TEXT_SECTION bsp_start_hook_0(void)
    arm_cp15_set_translation_table_base_control_register(0);

    /* Clear Secure or Non-secure Vector Base Address Register */
-  arm_cp15_set_vector_base_address(0);
+  arm_cp15_set_vector_base_address(bsp_vector_table_begin);

  #ifdef RTEMS_SMP
    if (cpu_index_self == 0) {

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list