Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 Cleanup trapframe and TSTATE handling.



details:   https://anonhg.NetBSD.org/src/rev/9ad2d4bf6185
branches:  trunk
changeset: 495588:9ad2d4bf6185
user:      eeh <eeh%NetBSD.org@localhost>
date:      Tue Aug 01 00:34:13 2000 +0000

description:
Cleanup trapframe and TSTATE handling.

diffstat:

 sys/arch/sparc64/sparc64/netbsd32_machdep.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r b204230f4848 -r 9ad2d4bf6185 sys/arch/sparc64/sparc64/netbsd32_machdep.c
--- a/sys/arch/sparc64/sparc64/netbsd32_machdep.c       Tue Aug 01 00:31:15 2000 +0000
+++ b/sys/arch/sparc64/sparc64/netbsd32_machdep.c       Tue Aug 01 00:34:13 2000 +0000
@@ -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 @@
         *      %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 @@
        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 @@
        } */ *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 @@
        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 @@
        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;



Home | Main Index | Thread Index | Old Index