Use the MI fork_return() fork trampoline callout function for child

processes instead of the MD child_return().
This commit is contained in:
John Baldwin 2001-02-22 16:05:48 +00:00
parent 29182967ef
commit 7def4c9ab5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=72899

View File

@ -261,7 +261,7 @@ cpu_fork(p1, p2, flags)
* right value for gp.
*/
up->u_pcb.pcb_sp = (u_int64_t)p2tf - 16;
up->u_pcb.pcb_r4 = FDESC_FUNC(child_return);
up->u_pcb.pcb_r4 = FDESC_FUNC(fork_return);
up->u_pcb.pcb_r5 = FDESC_FUNC(exception_restore);
up->u_pcb.pcb_r6 = (u_int64_t)p2;
up->u_pcb.pcb_b0 = FDESC_FUNC(switch_trampoline);