> Skipping this if TF-A was loaded beforehand seems to be just an > optimization > that shouldn't affect correctness. But the PSCI stuff installed by > barebox > and TF-A if used may be another matter. > > Rouven, any idea how to check if TF-A was first stage? Would checking > if barebox > is in non-secure mode work? Unfortunately, no. ARMv7a does not provide any means to check whether the processor is in secure state (which would indicate that no secure monitor has been installed). Accesses to the secure configuration register which contain the NS bit will result in an abort, however I currently don't remember whether this abort is taken in secure or non- secure mode. Regards, Rouven Czerwinski -- Pengutronix e.K. | | Industrial Linux Solutions | https://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox