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

« back to all changes in this revision

Viewing changes to arch/arm/mm/abort-ev4.S

  • 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:
3
3
/*
4
4
 * Function: v4_early_abort
5
5
 *
6
 
 * Params  : r2 = address of aborted instruction
7
 
 *         : r3 = saved SPSR
 
6
 * Params  : r2 = pt_regs
 
7
 *         : r4 = aborted context pc
 
8
 *         : r5 = aborted context psr
8
9
 *
9
 
 * Returns : r0 = address of abort
10
 
 *         : r1 = FSR, bit 11 = write
11
 
 *         : r2-r8 = corrupted
12
 
 *         : r9 = preserved
13
 
 *         : sp = pointer to registers
 
10
 * Returns : r4 - r11, r13 preserved
14
11
 *
15
12
 * Purpose : obtain information about current aborted instruction.
16
13
 * Note: we read user space.  This means we might cause a data
21
18
ENTRY(v4_early_abort)
22
19
        mrc     p15, 0, r1, c5, c0, 0           @ get FSR
23
20
        mrc     p15, 0, r0, c6, c0, 0           @ get FAR
24
 
        ldr     r3, [r2]                        @ read aborted ARM instruction
 
21
        ldr     r3, [r4]                        @ read aborted ARM instruction
25
22
        bic     r1, r1, #1 << 11 | 1 << 10      @ clear bits 11 and 10 of FSR
26
23
        tst     r3, #1 << 20                    @ L = 1 -> write?
27
24
        orreq   r1, r1, #1 << 11                @ yes.
28
 
        mov     pc, lr
29
 
 
30
 
 
 
25
        b       do_DataAbort