-
Notifications
You must be signed in to change notification settings - Fork 7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove usage of SYS_INIT in the kernel #74219
Conversation
nashif
commented
Jun 13, 2024
- init: move cpu initialization out of init
- kernel: initialize object cores directly
- init: move system work to main init process
- kernel: remove SYS_INIT usage for userspace
- init: remove SYS_INIT usage for memory domains
- init: initialize kheap statics in the main init process
- kernel: do not use SYS_INIT for mailbox initialization
- kernel: rename k_sys_work_q_init -> init_system_workqueue
12d0147
to
b8117b1
Compare
19a7650
to
e8e9f80
Compare
There is no need for the cpu and idle thread initialization to be crammed into init.c. Move out to new/existing files for readability. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Do not use SYS_INIT for initialization object cores and statsitics. Those are expected to be initialized in the same spot and their dependencies are fixed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Do not use SYS_INIT for start the system workqueue. It does have fixed dependencies and can be directly started from the main initialization process. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Directly initialize memory for userspace in the main init process. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Directly initialize memory domains in the main init process. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Do not use SYS_INIT for kheap statics, directly invoke code in the main init process. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Directly call initialization function instead of SYS_INIT. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
Avoid confusion with API using same prefix. This is no public API. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
obj_core and object initialization were done all under obj_core which is not working as expected. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
e8e9f80
to
044ebe8
Compare
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |