machdep.c (121237) | machdep.c (122364) |
---|---|
1/*- 2 * Copyright (c) 2001 Jake Burkholder. 3 * Copyright (c) 1992 Terrence R. Lambert. 4 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 39 * from: FreeBSD: src/sys/i386/i386/machdep.c,v 1.477 2001/08/27 | 1/*- 2 * Copyright (c) 2001 Jake Burkholder. 3 * Copyright (c) 1992 Terrence R. Lambert. 4 * Copyright (c) 1982, 1987, 1990 The Regents of the University of California. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to Berkeley by 8 * William Jolitz. --- 23 unchanged lines hidden (view full) --- 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 39 * from: FreeBSD: src/sys/i386/i386/machdep.c,v 1.477 2001/08/27 |
40 * $FreeBSD: head/sys/sparc64/sparc64/machdep.c 121237 2003-10-19 02:36:07Z peter $ | 40 * $FreeBSD: head/sys/sparc64/sparc64/machdep.c 122364 2003-11-09 20:31:04Z marcel $ |
41 */ 42 43#include "opt_compat.h" 44#include "opt_ddb.h" 45#include "opt_kstack_pages.h" 46#include "opt_msgbuf.h" 47 48#include <sys/param.h> --- 510 unchanged lines hidden (view full) --- 559freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) 560{ 561 562 return sigreturn(td, (struct sigreturn_args *)uap); 563} 564#endif 565 566int | 41 */ 42 43#include "opt_compat.h" 44#include "opt_ddb.h" 45#include "opt_kstack_pages.h" 46#include "opt_msgbuf.h" 47 48#include <sys/param.h> --- 510 unchanged lines hidden (view full) --- 559freebsd4_sigreturn(struct thread *td, struct freebsd4_sigreturn_args *uap) 560{ 561 562 return sigreturn(td, (struct sigreturn_args *)uap); 563} 564#endif 565 566int |
567get_mcontext(struct thread *td, mcontext_t *mc, int clear_ret) | 567get_mcontext(struct thread *td, mcontext_t *mc, int flags) |
568{ 569 struct trapframe *tf; 570 struct pcb *pcb; 571 572 tf = td->td_frame; 573 pcb = td->td_pcb; 574 bcopy(tf, mc, sizeof(*tf)); | 568{ 569 struct trapframe *tf; 570 struct pcb *pcb; 571 572 tf = td->td_frame; 573 pcb = td->td_pcb; 574 bcopy(tf, mc, sizeof(*tf)); |
575 if (clear_ret != 0) { | 575 if (flags & GET_MC_CLEAR_RET) { |
576 mc->mc_out[0] = 0; 577 mc->mc_out[1] = 0; 578 } 579 mc->mc_flags = _MC_VERSION; 580 critical_enter(); 581 if ((tf->tf_fprs & FPRS_FEF) != 0) { 582 savefpctx(pcb->pcb_ufp); 583 tf->tf_fprs &= ~FPRS_FEF; --- 219 unchanged lines hidden --- | 576 mc->mc_out[0] = 0; 577 mc->mc_out[1] = 0; 578 } 579 mc->mc_flags = _MC_VERSION; 580 critical_enter(); 581 if ((tf->tf_fprs & FPRS_FEF) != 0) { 582 savefpctx(pcb->pcb_ufp); 583 tf->tf_fprs &= ~FPRS_FEF; --- 219 unchanged lines hidden --- |