[riot-notifications] [RIOT-OS/RIOT] rename cpu_init() to soc_init(), don't call it from board_init() (#16055)

Marian Buschsieweke notifications at github.com
Wed May 19 21:19:28 CEST 2021


I wonder if we could eventually have the whole boot hooks as an XFA of function pointers. That should make it pretty easy to add an pre-`cpu_init` and a post-`cpu_init` hook, or even both.

On the other hand, explicit function calls are more efficient, especially when using LTO. And a more rigid program flow can enforce a more consistent look and feel.

Regarding having the board intervene prior to cpu_init: Having an explicit pre_cpu_init hook does IMO not hurt. This could be guarded with an `if (IS_ACTIVE(...))` to only have boards paying the ROM bytes needed it. As far as I can see, a board needing a pre-`cpu_init` hook is very much the exception. 

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16055#issuecomment-844397668
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210519/62d4e3c2/attachment.htm>


More information about the notifications mailing list