diff options
author | kib <kib@FreeBSD.org> | 2016-06-16 12:05:44 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-06-16 12:05:44 +0000 |
commit | 496a3b1f658d32d5ed000ef2ee765245a29a6c67 (patch) | |
tree | 66e95908604c725c90a1a3d19849f3f69e59521a /sys/powerpc | |
parent | 2c44599f9cf7cf8083305e492d232b68f3682570 (diff) | |
download | FreeBSD-src-496a3b1f658d32d5ed000ef2ee765245a29a6c67.zip FreeBSD-src-496a3b1f658d32d5ed000ef2ee765245a29a6c67.tar.gz |
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
Diffstat (limited to 'sys/powerpc')
-rw-r--r-- | sys/powerpc/powerpc/exec_machdep.c | 6 | ||||
-rw-r--r-- | sys/powerpc/powerpc/vm_machdep.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/powerpc/powerpc/exec_machdep.c b/sys/powerpc/powerpc/exec_machdep.c index fc88f9d..c538e6b 100644 --- a/sys/powerpc/powerpc/exec_machdep.c +++ b/sys/powerpc/powerpc/exec_machdep.c @@ -955,7 +955,7 @@ cpu_set_user_tls(struct thread *td, void *tls_base) } void -cpu_set_upcall(struct thread *td, struct thread *td0) +cpu_copy_thread(struct thread *td, struct thread *td0) { struct pcb *pcb2; struct trapframe *tf; @@ -996,8 +996,8 @@ cpu_set_upcall(struct thread *td, struct thread *td0) } void -cpu_set_upcall_kse(struct thread *td, void (*entry)(void *), void *arg, - stack_t *stack) +cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg, + stack_t *stack) { struct trapframe *tf; uintptr_t sp; diff --git a/sys/powerpc/powerpc/vm_machdep.c b/sys/powerpc/powerpc/vm_machdep.c index 3d4e58b..858fb14 100644 --- a/sys/powerpc/powerpc/vm_machdep.c +++ b/sys/powerpc/powerpc/vm_machdep.c @@ -179,7 +179,7 @@ cpu_fork(struct thread *td1, struct proc *p2, struct thread *td2, int flags) * 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 callframe *cf; |