Merge branches 'misc', 'vdso' and 'fixes' into for-next
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 14 Apr 2015 21:28:25 +0000 (22:28 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 14 Apr 2015 21:28:25 +0000 (22:28 +0100)
Conflicts:
arch/arm/mm/proc-macros.S

1  2  3 
arch/arm/Makefile
arch/arm/include/asm/elf.h
arch/arm/kernel/Makefile
arch/arm/kernel/process.c
arch/arm/kernel/setup.c
arch/arm/mm/Kconfig
arch/arm/mm/cache-l2x0.c
arch/arm/mm/dma-mapping.c
arch/arm/mm/proc-arm940.S
arch/arm/mm/proc-arm946.S
arch/arm/mm/proc-macros.S

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index 0f13b5f9281ecdcdf116d6ec1c589e3fd9474d83,082b9f2f7e9001ce0b9ad1f990befec1dafc08d5,d081c9d9420dfa227c3c3f291423adee59203a47..c671f345266a56d6641e502b5eea0b196ea0c8a0
@@@@ -331,7 -331,3 -331,27 +331,31 @@@@ ENTRY(\name\()_tlb_fns
        .globl  \x
        .equ    \x, \y
   .endm
 + 
 ++.macro       initfn, func, base
 ++     .long   \func - \base
 ++.endm
+++
++      /*
++       * Macro to calculate the log2 size for the protection region
++       * registers. This calculates rd = log2(size) - 1.  tmp must
++       * not be the same register as rd.
++       */
++ .macro       pr_sz, rd, size, tmp
++      mov     \tmp, \size, lsr #12
++      mov     \rd, #11
++ 1:   movs    \tmp, \tmp, lsr #1
++      addne   \rd, \rd, #1
++      bne     1b
++ .endm
++ 
++      /*
++       * Macro to generate a protection region register value
++       * given a pre-masked address, size, and enable bit.
++       * Corrupts size.
++       */
++ .macro       pr_val, dest, addr, size, enable
++      pr_sz   \dest, \size, \size             @ calculate log2(size) - 1
++      orr     \dest, \addr, \dest, lsl #1     @ mask in the region size
++      orr     \dest, \dest, \enable
++ .endm