fork the src_lwp->aspace in current */
| 216 | |
| 217 | /** fork the src_lwp->aspace in current */ |
| 218 | int lwp_fork_aspace(struct rt_lwp *dest_lwp, struct rt_lwp *src_lwp) |
| 219 | { |
| 220 | int err; |
| 221 | err = rt_aspace_fork(&src_lwp->aspace, &dest_lwp->aspace); |
| 222 | if (!err) |
| 223 | { |
| 224 | /* do a explicit aspace switch if the page table is changed */ |
| 225 | lwp_aspace_switch(rt_thread_self()); |
| 226 | } |
| 227 | return err; |
| 228 | } |
| 229 | |
| 230 | int lwp_unmap_user_phy(struct rt_lwp *lwp, void *va) |
| 231 | { |
no test coverage detected