From owner-p4-projects Sun Jun 23 19: 3:26 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 13F2937B401; Sun, 23 Jun 2002 19:03:17 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 61C2537B400 for ; Sun, 23 Jun 2002 19:03:16 -0700 (PDT) Received: (from perforce@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5O23GH73964 for perforce@freebsd.org; Sun, 23 Jun 2002 19:03:16 -0700 (PDT) (envelope-from mini@freebsd.org) Date: Sun, 23 Jun 2002 19:03:16 -0700 (PDT) Message-Id: <200206240203.g5O23GH73964@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to mini@freebsd.org using -f From: Jonathan Mini Subject: PERFORCE change 13347 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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