static int setup_sigcontext(struct target_sigcontext *sc,

                            CPUOpenRISCState *regs,

                            unsigned long mask)

{

    int err = 0;

    unsigned long usp = regs->gpr[1];



    /* copy the regs. they are first in sc so we can use sc directly */



    /*copy_to_user(&sc, regs, sizeof(struct target_pt_regs));*/



    /* Set the frametype to CRIS_FRAME_NORMAL for the execution of

       the signal handler. The frametype will be restored to its previous

       value in restore_sigcontext. */

    /*regs->frametype = CRIS_FRAME_NORMAL;*/



    /* then some other stuff */

    __put_user(mask, &sc->oldmask);

    __put_user(usp, &sc->usp); return err;

}

static int setup_sigcontext(struct target_sigcontext *sc,

                            CPUOpenRISCState *regs,

                            unsigned long mask)

{

    int err = 0;

    unsigned long usp = regs->gpr[1];



    



    



    





    



    

    __put_user(mask, &sc->oldmask);

    __put_user(usp, &sc->usp); return err;

}

static int FUNC_0(struct target_sigcontext *VAR_0,

                            CPUOpenRISCState *VAR_1,

                            unsigned long VAR_2)

{

    int VAR_3 = 0;

    unsigned long VAR_4 = VAR_1->gpr[1];



    



    



    





    



    

    __put_user(VAR_2, &VAR_0->oldmask);

    __put_user(VAR_4, &VAR_0->VAR_4); return VAR_3;

}

static int FUNC_0(struct target_sigcontext *VAR_0,
CPUOpenRISCState *VAR_1,
unsigned long VAR_2)
{ int VAR_3 = 0; unsigned long VAR_4 = VAR_1->gpr[1]; __put_user(VAR_2, &VAR_0->oldmask); __put_user(VAR_4, &VAR_0->VAR_4); return VAR_3; }