diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-12-03 15:55:41 +0000 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2023-01-12 06:05:55 -0500 |
commit | 39439f69094225380af1714e52a5ff145612e70e (patch) | |
tree | 1d27bc7c12206a912645d78949c9f4d366fc16f1 /firmware/export/i2c.h | |
parent | 541960a11061213f682d67bb036f861b2605f9d3 (diff) | |
download | rockbox-39439f69094225380af1714e52a5ff145612e70e.tar.gz rockbox-39439f69094225380af1714e52a5ff145612e70e.zip |
Add INIT_ATTR to system_init()
On single-core targets, system_init() is only called from init()
in main.c, which is also INIT_ATTR, so this is safe.
Multi-core targets additionally call system_init() from cop_main(),
which isn't marked INIT_ATTR. I'm fairly certain that it would be
safe to add INIT_ATTR to cop_main() with a bit of refactoring, but
I don't have a way of testing it. So for now, leave INIT_ATTR off
for multi-core targets.
Change-Id: I8fe4358f975880ca317d46bda01d7d9db529d3e3
Diffstat (limited to 'firmware/export/i2c.h')
0 files changed, 0 insertions, 0 deletions