Date: Tue, 19 Jan 2021 19:06:46 GMT From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: c7f3aa34cf0e - main - arm64: Trim duplicate code from cpu_fork_kthread_handler(). Message-ID: <202101191906.10JJ6kxB082918@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=c7f3aa34cf0eca4de268e8fca19af60db210558a commit c7f3aa34cf0eca4de268e8fca19af60db210558a Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2021-01-08 22:56:22 +0000 Commit: John Baldwin <jhb@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101191906.10JJ6kxB082918>