[BACK]Return to sig_machdep.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / arch / powerpc / powerpc

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/arch/powerpc/powerpc/sig_machdep.c between version 1.41 and 1.41.6.1

version 1.41, 2011/06/20 05:50:39 version 1.41.6.1, 2012/06/02 11:09:06
Line 187  cpu_getmcontext(struct lwp *l, mcontext_
Line 187  cpu_getmcontext(struct lwp *l, mcontext_
 }  }
   
 int  int
   cpu_mcontext_validate(struct lwp *l, const mcontext_t *mcp)
   {
           return 0;
   }
   
   int
 cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags)  cpu_setmcontext(struct lwp *l, const mcontext_t *mcp, unsigned int flags)
 {  {
         struct trapframe * const tf = l->l_md.md_utf;          struct trapframe * const tf = l->l_md.md_utf;
         const __greg_t * const gr = mcp->__gregs;          const __greg_t * const gr = mcp->__gregs;
           int error;
   
         /* Restore GPR context, if any. */          /* Restore GPR context, if any. */
         if (flags & _UC_CPU) {          if (flags & _UC_CPU) {
                   error = cpu_mcontext_validate(l, mcp);
                   if (error)
                           return error;
   
 #ifdef PPC_HAVE_FPU  #ifdef PPC_HAVE_FPU
                 /*                  /*
                  * Always save the FP exception mode in the PCB.                   * Always save the FP exception mode in the PCB.

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.41.6.1

CVSweb <webmaster@jp.NetBSD.org>