Ignore:
Timestamp:
Apr 21, 2017, 4:28:29 AM (5 weeks ago)
Author:
brainslayer
Message:

update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/linux/universal/linux-3.18/arch/metag/kernel/ptrace.c

    r25370 r31885  
    2525 */
    2626
     27static unsigned long user_txstatus(const struct pt_regs *regs)
     28{
     29        unsigned long data = (unsigned long)regs->ctx.Flags;
     30
     31        if (regs->ctx.SaveMask & TBICTX_CBUF_BIT)
     32                data |= USER_GP_REGS_STATUS_CATCH_BIT;
     33
     34        return data;
     35}
     36
    2737int metag_gp_regs_copyout(const struct pt_regs *regs,
    2838                          unsigned int pos, unsigned int count,
     
    6373                goto out;
    6474        /* TXSTATUS */
    65         data = (unsigned long)regs->ctx.Flags;
    66         if (regs->ctx.SaveMask & TBICTX_CBUF_BIT)
    67                 data |= USER_GP_REGS_STATUS_CATCH_BIT;
     75        data = user_txstatus(regs);
    6876        ret = user_regset_copyout(&pos, &count, &kbuf, &ubuf,
    6977                                  &data, 4*25, 4*26);
     
    120128                goto out;
    121129        /* TXSTATUS */
     130        data = user_txstatus(regs);
    122131        ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
    123132                                 &data, 4*25, 4*26);
     
    245254        int ret, i;
    246255
     256        if (count < 4*13)
     257                return -EINVAL;
    247258        /* Read the entire pipeline before making any changes */
    248259        ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf,
     
    304315{
    305316        int ret;
    306         void __user *tls;
     317        void __user *tls = target->thread.tls_ptr;
    307318
    308319        ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &tls, 0, -1);
Note: See TracChangeset for help on using the changeset viewer.