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

Zephyr User Mode Support #3650

Merged
merged 7 commits into from
Jul 26, 2024
Merged

Conversation

mxsdlr
Copy link
Contributor

@mxsdlr mxsdlr commented Jul 22, 2024

Add support for the Zephyr Usermode to the Zephyr port.

The following changes are applied, if this PR gets accepcted:

  • Fix signbit, check if it is defined already and only implement it, if not
  • Introduce sys_mutex and sys_sem in favour of k_mutex and k_sem, when CONFIG_USERMODE is enabled
  • Remove the installation of the _stdout_hook_iwasm() when CONFIG_USERMODE is enabled, otherwise this causes MPU errors since the std hook is in the kernel space
  • Add a thread name for debugging

mxsdlr and others added 3 commits July 22, 2024 11:20
    - Fix signbit is defined already
    - Introduce sys_mutex and sys_sem via macros
    - Remove _stdout_hook_iwasm() when in usermode to fix MPU errors
    - Add thread name
Copy link
Contributor

@wenyongh wenyongh left a comment

Choose a reason for hiding this comment

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

LGTM

@wenyongh wenyongh merged commit 4c5f35b into bytecodealliance:main Jul 26, 2024
380 checks passed
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