~ubuntu-branches/ubuntu/quantal/linux-linaro-mx51/quantal

« back to all changes in this revision

Viewing changes to arch/arm/kernel/ptrace.c

  • Committer: Package Import Robot
  • Author(s): John Rigby, John Rigby
  • Date: 2011-09-26 10:44:23 UTC
  • Revision ID: package-import@ubuntu.com-20110926104423-3o58a3c1bj7x00rs
Tags: 3.0.0-1007.9
[ John Rigby ]

Enable crypto modules and remove crypto-modules from
exclude-module files
LP: #826021

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        .fn             = break_trap,
229
229
};
230
230
 
231
 
static int thumb2_break_trap(struct pt_regs *regs, unsigned int instr)
232
 
{
233
 
        unsigned int instr2;
234
 
        void __user *pc;
235
 
 
236
 
        /* Check the second half of the instruction.  */
237
 
        pc = (void __user *)(instruction_pointer(regs) + 2);
238
 
 
239
 
        if (processor_mode(regs) == SVC_MODE) {
240
 
                instr2 = *(u16 *) pc;
241
 
        } else {
242
 
                get_user(instr2, (u16 __user *)pc);
243
 
        }
244
 
 
245
 
        if (instr2 == 0xa000) {
246
 
                ptrace_break(current, regs);
247
 
                return 0;
248
 
        } else {
249
 
                return 1;
250
 
        }
251
 
}
252
 
 
253
231
static struct undef_hook thumb2_break_hook = {
254
 
        .instr_mask     = 0xffff,
255
 
        .instr_val      = 0xf7f0,
 
232
        .instr_mask     = 0xffffffff,
 
233
        .instr_val      = 0xf7f0a000,
256
234
        .cpsr_mask      = PSR_T_BIT,
257
235
        .cpsr_val       = PSR_T_BIT,
258
 
        .fn             = thumb2_break_trap,
 
236
        .fn             = break_trap,
259
237
};
260
238
 
261
239
static int __init ptrace_break_init(void)