[PATCH] arm/raspberrypi: Fix linker map

Chris Johns chrisj at rtems.org
Mon Jul 29 06:24:14 UTC 2019


On 29/7/19 4:16 pm, Sebastian Huber wrote:
> 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):

This works (and v2 also works).

Chris

> 
> 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) {
> 



More information about the devel mailing list