From af00dc8eef26d6f9d2b9d3cd92429a0db97e0b3c Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 24 Jan 2001 21:59:25 +0000 Subject: - Change fork_exit() to take a pointer to a trapframe as its 3rd argument instead of a trapframe directly. (Requested by bde.) - Convert the alpha switch_trampoline to call fork_exit() and use the MI fork_return() instead of child_return(). - Axe child_return(). --- sys/kern/kern_fork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/kern/kern_fork.c') diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 4785a70..8ad189e 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -645,7 +645,7 @@ void fork_exit(callout, arg, frame) void *callout(void *, struct trapframe *); void *arg; - struct trapframe frame; + struct trapframe *frame; { struct proc *p; @@ -666,7 +666,7 @@ fork_exit(callout, arg, frame) * have this call a non-return function to stay in kernel mode. * initproc has its own fork handler, but it does return. */ - (*callout)(arg, &frame); + (*callout)(arg, frame); /* * Check if a kernel thread misbehaved and returned from its main -- cgit v1.1