git: c7f3aa34cf0e - main - arm64: Trim duplicate code from cpu_fork_kthread_handler().
John Baldwin
jhb at FreeBSD.org
Tue Jan 19 19:06:46 UTC 2021
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=c7f3aa34cf0eca4de268e8fca19af60db210558a
commit c7f3aa34cf0eca4de268e8fca19af60db210558a
Author: John Baldwin <jhb at FreeBSD.org>
AuthorDate: 2021-01-08 22:56:22 +0000
Commit: John Baldwin <jhb at FreeBSD.org>
CommitDate: 2021-01-19 19:05:41 +0000
arm64: Trim duplicate code from cpu_fork_kthread_handler().
cpu_fork_kthread_handler() is always called after either cpu_fork() or
cpu_copy_thread(). The arm64 version was duplicating some of the work
already done by both of those functions.
Sponsored by: Netflix
---
sys/arm64/arm64/vm_machdep.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/sys/arm64/arm64/vm_machdep.c b/sys/arm64/arm64/vm_machdep.c
index 6a84dc023562..37fcf0224521 100644
--- a/sys/arm64/arm64/vm_machdep.c
+++ b/sys/arm64/arm64/vm_machdep.c
@@ -265,10 +265,6 @@ cpu_fork_kthread_handler(struct thread *td, void (*func)(void *), void *arg)
td->td_pcb->pcb_x[8] = (uintptr_t)func;
td->td_pcb->pcb_x[9] = (uintptr_t)arg;
- td->td_pcb->pcb_lr = (uintptr_t)fork_trampoline;
- td->td_pcb->pcb_sp = (uintptr_t)td->td_frame;
- td->td_pcb->pcb_fpusaved = &td->td_pcb->pcb_fpustate;
- td->td_pcb->pcb_vfpcpu = UINT_MAX;
}
void
More information about the dev-commits-src-all
mailing list