Skip to content
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

Closed
wants to merge 9 commits into from

Conversation

nashif
Copy link
Member

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

@nashif nashif force-pushed the topic/init/cleanup_2 branch from 12d0147 to b8117b1 Compare June 13, 2024 09:26
@nashif nashif force-pushed the topic/init/cleanup_2 branch 2 times, most recently from 19a7650 to e8e9f80 Compare June 25, 2024 20:21
nashif added 9 commits June 25, 2024 18:01
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>
@nashif nashif force-pushed the topic/init/cleanup_2 branch from e8e9f80 to 044ebe8 Compare June 25, 2024 22:01
Copy link

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.

@github-actions github-actions bot added the Stale label Aug 25, 2024
@nashif nashif removed the Stale label Aug 25, 2024
Copy link

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.

@github-actions github-actions bot added the Stale label Oct 25, 2024
@github-actions github-actions bot closed this Nov 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant