Cleanup trapframe and TSTATE handling.

This commit is contained in:
eeh 2000-08-01 00:34:13 +00:00
parent 6f9bfddd60
commit e5a87444c7
1 changed files with 6 additions and 6 deletions

View File

@ -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)<<TSTATE_PSTATE_SHIFT)
tstate = ((PSTATE_USER32)<<TSTATE_PSTATE_SHIFT)
| (tf->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;