Skip to content

arch: arm: add initial support for CONFIG_USERSPACE #4080

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

Merged

Conversation

chunlinhan
Copy link
Collaborator

add related configs & (stub) functions for enabling
CONFIG_USERSPACE on arm w/o build errors.

Signed-off-by: Chunlin Han [email protected]

add related configs & (stub) functions for enabling
CONFIG_USERSPACE on arm w/o build errors.

Signed-off-by: Chunlin Han <[email protected]>
/* the _current might be NULL before the first thread is scheduled if
* CONFIG_ARCH_HAS_CUSTOM_SWAP_TO_MAIN is enabled.
*/
if (!_current) {
Copy link
Contributor

@andrewboie andrewboie Sep 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bleah. don't like adding overhead here just for a situation that only happens in the pre-boot environment.
i believe it's the call to k_object_grant_access() in setup_new_thread() which does this.
i'll take this for now, but I'm going to optimize this away later. #4082 will track it.

@andrewboie andrewboie merged commit 95d28e5 into zephyrproject-rtos:master Sep 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants