aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2016-06-16 12:05:44 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2016-06-16 12:05:44 +0000
commit5c2cf818454375536fda522ba83cf67c50929e6b (patch)
tree66e95908604c725c90a1a3d19849f3f69e59521a /sys/sparc64
parentbd07998e0e25b8d9cedbc887dd759cab3fa51886 (diff)
downloadsrc-5c2cf818454375536fda522ba83cf67c50929e6b.tar.gz
src-5c2cf818454375536fda522ba83cf67c50929e6b.zip
Update comments for the MD functions managing contexts for new
threads, to make it less confusing and using modern kernel terms. Rename the functions to reflect current use of the functions, instead of the historic KSE conventions: cpu_set_fork_handler -> cpu_fork_kthread_handler (for kthreads) cpu_set_upcall -> cpu_copy_thread (for forks) cpu_set_upcall_kse -> cpu_set_upcall (for new threads creation) Reviewed by: jhb (previous version) Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (hrs) Differential revision: https://reviews.freebsd.org/D6731
Notes
Notes: svn path=/head/; revision=301961
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/vm_machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sparc64/sparc64/vm_machdep.c b/sys/sparc64/sparc64/vm_machdep.c
index 5807f29270a3..a8b244ceea43 100644
--- a/sys/sparc64/sparc64/vm_machdep.c
+++ b/sys/sparc64/sparc64/vm_machdep.c
@@ -174,7 +174,7 @@ cpu_set_syscall_retval(struct thread *td, int error)
}
void
-cpu_set_upcall(struct thread *td, struct thread *td0)
+cpu_copy_thread(struct thread *td, struct thread *td0)
{
struct trapframe *tf;
struct frame *fr;
@@ -197,7 +197,7 @@ cpu_set_upcall(struct thread *td, struct thread *td0)
}
void
-cpu_set_upcall_kse(struct thread *td, void (*entry)(void *), void *arg,
+cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg,
stack_t *stack)
{
struct trapframe *tf;
@@ -360,7 +360,7 @@ cpu_reset(void)
* This is needed to make kernel threads stay in kernel mode.
*/
void
-cpu_set_fork_handler(struct thread *td, void (*func)(void *), void *arg)
+cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg)
{
struct frame *fp;
struct pcb *pcb;