diff options
author | dchagin <dchagin@FreeBSD.org> | 2011-02-12 16:33:00 +0000 |
---|---|---|
committer | dchagin <dchagin@FreeBSD.org> | 2011-02-12 16:33:00 +0000 |
commit | a999d3553b8c6d5ba61c9b15cb3ac797ad448aee (patch) | |
tree | 88f0502103d23e3269c330df10641d365694ceff /sys/amd64/linux32 | |
parent | 8b4a0070062f048a875f2373eabffba8c5633b67 (diff) | |
download | FreeBSD-src-a999d3553b8c6d5ba61c9b15cb3ac797ad448aee.zip FreeBSD-src-a999d3553b8c6d5ba61c9b15cb3ac797ad448aee.tar.gz |
In preparation for moving linux_clone() to a MI path
introduce linux_set_upcall_kse().
Diffstat (limited to 'sys/amd64/linux32')
-rw-r--r-- | sys/amd64/linux32/linux.h | 2 | ||||
-rw-r--r-- | sys/amd64/linux32/linux32_machdep.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h index 39d4a80..17eded4 100644 --- a/sys/amd64/linux32/linux.h +++ b/sys/amd64/linux32/linux.h @@ -920,4 +920,6 @@ struct linux_robust_list_head { l_uintptr_t pending_list; }; +int linux_set_upcall_kse(struct thread *td, register_t stack); + #endif /* !_AMD64_LINUX_H_ */ diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c index d24b7b6..ac205b0 100644 --- a/sys/amd64/linux32/linux32_machdep.c +++ b/sys/amd64/linux32/linux32_machdep.c @@ -655,7 +655,7 @@ linux_clone(struct thread *td, struct linux_clone_args *args) * intact. */ if (args->stack) - td2->td_frame->tf_rsp = PTROUT(args->stack); + linux_set_upcall_kse(td2, PTROUT(args->stack)); if (args->flags & LINUX_CLONE_SETTLS) linux_set_cloned_tls(td2, args->tls); @@ -694,6 +694,15 @@ linux_clone(struct thread *td, struct linux_clone_args *args) return (0); } +int +linux_set_upcall_kse(struct thread *td, register_t stack) +{ + + td->td_frame->tf_rsp = stack; + + return (0); +} + #define STACK_SIZE (2 * 1024 * 1024) #define GUARD_SIZE (4 * PAGE_SIZE) |