static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)

{

    target_long *stack = (void *)infop->start_stack;

    memset(regs, 0, sizeof(*regs));

    regs->ARM_cpsr = 0x10;

    regs->ARM_pc = infop->entry;

    regs->ARM_sp = infop->start_stack;

    regs->ARM_r2 = tswapl(stack[2]); /* envp */

    regs->ARM_r1 = tswapl(stack[1]); /* argv */

    /* XXX: it seems that r0 is zeroed after ! */

    //    regs->ARM_r0 = tswapl(stack[0]); /* argc */

}

static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)

{

    target_long *stack = (void *)infop->start_stack;

    memset(regs, 0, sizeof(*regs));

    regs->ARM_cpsr = 0x10;

    regs->ARM_pc = infop->entry;

    regs->ARM_sp = infop->start_stack;

    regs->ARM_r2 = tswapl(stack[2]); 

    regs->ARM_r1 = tswapl(stack[1]); 

    

    

}

static inline void FUNC_0(struct target_pt_regs *VAR_0, struct image_info *VAR_1)

{

    target_long *stack = (void *)VAR_1->start_stack;

    memset(VAR_0, 0, sizeof(*VAR_0));

    VAR_0->ARM_cpsr = 0x10;

    VAR_0->ARM_pc = VAR_1->entry;

    VAR_0->ARM_sp = VAR_1->start_stack;

    VAR_0->ARM_r2 = tswapl(stack[2]); 

    VAR_0->ARM_r1 = tswapl(stack[1]); 

    

    

}

static inline void FUNC_0(struct target_pt_regs *VAR_0, struct image_info *VAR_1)
{ target_long *stack = (void *)VAR_1->start_stack; memset(VAR_0, 0, sizeof(*VAR_0)); VAR_0->ARM_cpsr = 0x10; VAR_0->ARM_pc = VAR_1->entry; VAR_0->ARM_sp = VAR_1->start_stack; VAR_0->ARM_r2 = tswapl(stack[2]); VAR_0->ARM_r1 = tswapl(stack[1]); }