Date: Sun, 23 Jun 2002 19:03:16 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 13347 for review Message-ID: <200206240203.g5O23GH73964@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=13347 Change 13347 by mini@freefall on 2002/06/23 19:02:16 Diff reduction against -CURRENT. Remove unused #if 0'd code. Affected files ... ... //depot/projects/kse/sys/alpha/alpha/vm_machdep.c#25 edit ... //depot/projects/kse/sys/i386/i386/vm_machdep.c#58 edit Differences ... ==== //depot/projects/kse/sys/alpha/alpha/vm_machdep.c#25 (text+ko) ==== @@ -338,25 +338,6 @@ #endif } -#if 0 -/* - * Set the return value for returning upcalls. - * We should be able to do this ahead of time in cpu_save_upcall(). - * doing it once there instead of N times in the upcall path - */ - -void -cpu_set_retval(struct thread *td, int retval, int aux, int success) -{ - struct trapframe *frame; - - frame = td->td_frame; - frame->tf_regs[FRAME_V0] = (u_int64_t)retval; - frame->tf_regs[FRAME_A3] = (success) ? 0 : ~0; - frame->tf_regs[FRAME_A4] = (u_int64_t)aux; -} -#endif - void cpu_set_args(struct thread *td, struct kse *ke) { ==== //depot/projects/kse/sys/i386/i386/vm_machdep.c#58 (text+ko) ==== @@ -395,28 +395,6 @@ pcb2->pcb_ext = NULL; } -#if 0 -/* - * Set the return value for returning upcalls. - * We should be able to do this ahead of time in cpu_save_upcall(). - * doing it once there instead of N times in the upcall path - */ - -void -cpu_set_retval(struct thread *td, int retval, int aux, int success) -{ - struct trapframe *frame; - - frame = td->td_frame; - frame->tf_eax = retval; /* Child returns zero */ - frame->tf_edx = aux; /* for 64 bit or multiple values */ - if (success) - frame->tf_eflags &= ~PSL_C; /* success */ - else - frame->tf_eflags |= PSL_C; /* error */ -} -#endif - void cpu_set_args(struct thread *td, struct kse *ke) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206240203.g5O23GH73964>