[PATCH 6/6] bsps/aarch64: add non-secure mode and versal support

Gedare Bloom gedare at rtems.org
Thu Jun 24 14:58:32 UTC 2021


On Thu, Jun 24, 2021 at 3:42 AM Sebastian Huber
<sebastian.huber at embedded-brains.de> wrote:
>
> On 23/06/2021 06:29, Gedare Bloom wrote:
> > +  If set to true, then the a system start in monitor mode (EL3) is
> > +  supported, otherwise it is unsupported.
> > +enabled-by: true
> > +links: []
> > +name: BSP_START_IN_MON_SUPPORT
>
> Maybe name this BSP_START_IN_EL3_MONITOR_MODE_SUPPORT.
>

Thanks, I will.

By the way, we can also do something like this instead in the aarch64 boot code:
https://chromium.googlesource.com/chromiumos/third_party/coreboot/+/398a68c3b08d82cfa521d235af2c1922629bdf56/src/arch/arm64/include/armv8/arch/lib_helpers.h#47


mrs x0, CurrentEL
cmp x0, #(1<<2)
b.eq _el1_start
cmp x0, #(2<<2)
b.eq _el2_start
cmp x0, #(3<<2)
b.eq _el3_start
_fatal_start: ...

I think we could get rid of these option macros this way.

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