With demand paging, the main stack is not user mode capable and it would fail k_thread_user_mode_enter() under app_b_entry(). So create another thread and stack for app_b as this stack can be used in user mode. Signed-off-by: Daniel Leung <daniel.leung@intel.com> |
||
|---|---|---|
| .. | ||
| app_a.c | ||
| app_a.h | ||
| app_b.c | ||
| app_b.h | ||
| app_syscall.c | ||
| app_syscall.h | ||
| main.c | ||
| main.h | ||
| sample_driver_foo.c | ||
| sample_driver_handlers.c | ||
| sample_driver.h | ||