You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to create a k_thread using a runtime instantiated a kernel object in Kernel Mode using k_malloc Zephyr throws a General protection fault on thread creation. According to #29589 this should be possible. I tried the same using k_calloc, which causes the same error for me. Is there anything else that has to be done before calling k_thread_create?
I only tried this on the up squared board, since qemu is stuck while booting.
x86 and x86_64 require certain alignment in the k_thread struct
since the buffer to save/restore FPU/SSE registers requires
strict alignment.
Fixes#29589Fixes#29629
Signed-off-by: Daniel Leung <[email protected]>
Describe the bug
When I try to create a
k_thread
using a runtime instantiated a kernel object in Kernel Mode using k_malloc Zephyr throws a General protection fault on thread creation. According to #29589 this should be possible. I tried the same usingk_calloc
, which causes the same error for me. Is there anything else that has to be done before callingk_thread_create
?I only tried this on the up squared board, since qemu is stuck while booting.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
It should create the Thread without throwing a protection fault.
Logs and console output
Environment (please complete the following information):
Additional context
Here is the minimal example, so it is not required to download the zip to check the code:
The text was updated successfully, but these errors were encountered: