From e5a87444c779679e9b580ccda60a591166ffa770 Mon Sep 17 00:00:00 2001 From: eeh Date: Tue, 1 Aug 2000 00:34:13 +0000 Subject: [PATCH] Cleanup trapframe and TSTATE handling. --- sys/arch/sparc64/sparc64/netbsd32_machdep.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sys/arch/sparc64/sparc64/netbsd32_machdep.c b/sys/arch/sparc64/sparc64/netbsd32_machdep.c index 493fc3845e1b..3b84e295196b 100644 --- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c +++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: netbsd32_machdep.c,v 1.8 2000/07/09 13:35:54 mrg Exp $ */ +/* $NetBSD: netbsd32_machdep.c,v 1.9 2000/08/01 00:34:13 eeh Exp $ */ /* * Copyright (c) 1998 Matthew R. Green @@ -80,7 +80,7 @@ netbsd32_setregs(p, pack, stack) * %g1: address of PS_STRINGS (used by crt0) * %tpc,%tnpc: entry point of program */ - tstate = ((PSTATE_USER)<tf_tstate & TSTATE_CWP); if ((fs = p->p_md.md_fpstate) != NULL) { /* @@ -133,7 +133,7 @@ netbsd32_sendsig(catcher, sig, mask, code) register struct proc *p = curproc; register struct sigacts *psp = p->p_sigacts; register struct sparc32_sigframe *fp; - register struct trapframe *tf; + register struct trapframe64 *tf; register int addr, onstack; struct rwindow32 *kwin, *oldsp, *newsp; struct sparc32_sigframe sf; @@ -264,7 +264,7 @@ compat_13_netbsd32_sigreturn(p, v, retval) } */ *uap = v; struct netbsd32_sigcontext13 *scp; struct netbsd32_sigcontext13 sc; - register struct trapframe *tf; + register struct trapframe64 *tf; struct rwindow32 *rwstack, *kstack; sigset_t mask; @@ -440,7 +440,7 @@ netbsd32_process_read_regs(p, regs) struct reg *regs; { struct reg32* regp = (struct reg32*)regs; - struct trapframe* tf = p->p_md.md_tf; + struct trapframe64* tf = p->p_md.md_tf; int i; /* @@ -467,7 +467,7 @@ netbsd32_process_write_regs(p, regs) struct reg *regs; { struct reg32* regp = (struct reg32*)regs; - struct trapframe* tf = p->p_md.md_tf; + struct trapframe64* tf = p->p_md.md_tf; int i; tf->tf_pc = regp->r_pc;