Question about Raspberry Pi bspstarthooks.c - potential patch

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 29 05:42:06 UTC 2021


Hello Alan,

On 29/06/2021 03:13, Alan Cudmore wrote:
> The current RTEMS 6/master branch does not seem to work on the
> Raspberry Pi single core models, while the 5 branch does.
> 
> I was able to track it down to a commit where it stopped working:
> 272534eb725f2486b7a32b39d998202a101bd36e
> 
> In that commit, the call:
>   /* Clear Secure or Non-secure Vector Base Address Register */
>    arm_cp15_set_vector_base_address(bsp_vector_table_begin);
> 
> Was moved from bsp_start_hook_0 to rpi_start_rtems_on_secondary_processor.
> 
> If I add it back to bsp_start_hook_0, the single core models work again.

I moved the VBAR setting to start.S. Maybe the problem is that TTBCR is 
no longer set to zero before the VBAR is set. The Raspberry Pi BSP is 
the only BSP which did this.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list