diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-26 18:03:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-26 18:03:49 -0500 |
commit | bbecb1cfcca55f98cfcb62fa36a32d79975d8816 (patch) | |
tree | ac86a653ea2c9e3c0352b7975026fde14dd3dec1 /arch/arm/include/asm/assembler.h | |
parent | dec0029a59779d8279dde663ef8abe9824ee5773 (diff) | |
parent | 8bafae202c82dc257f649ea3c275a0f35ee15113 (diff) |
Merge branch 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM fixes from Russell King:
- LPAE fixes for kernel-readonly regions
- Fix for get_user_pages_fast on LPAE systems
- avoid tying decompressor to a particular platform if DEBUG_LL is
enabled
- BUG if we attempt to return to userspace but the to-be-restored PSR
value keeps us in privileged mode (defeating an issue that ftracetest
found)
* 'fixes' of git://git.armlinux.org.uk/~rmk/linux-arm:
ARM: BUG if jumping to usermode address in kernel mode
ARM: 8722/1: mm: make STRICT_KERNEL_RWX effective for LPAE
ARM: 8721/1: mm: dump: check hardware RO bit for LPAE
ARM: make decompressor debug output user selectable
ARM: fix get_user_pages_fast
Diffstat (limited to 'arch/arm/include/asm/assembler.h')
-rw-r--r-- | arch/arm/include/asm/assembler.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h index ad301f107dd2..bc8d4bbd82e2 100644 --- a/arch/arm/include/asm/assembler.h +++ b/arch/arm/include/asm/assembler.h | |||
@@ -518,4 +518,22 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) | |||
518 | #endif | 518 | #endif |
519 | .endm | 519 | .endm |
520 | 520 | ||
521 | .macro bug, msg, line | ||
522 | #ifdef CONFIG_THUMB2_KERNEL | ||
523 | 1: .inst 0xde02 | ||
524 | #else | ||
525 | 1: .inst 0xe7f001f2 | ||
526 | #endif | ||
527 | #ifdef CONFIG_DEBUG_BUGVERBOSE | ||
528 | .pushsection .rodata.str, "aMS", %progbits, 1 | ||
529 | 2: .asciz "\msg" | ||
530 | .popsection | ||
531 | .pushsection __bug_table, "aw" | ||
532 | .align 2 | ||
533 | .word 1b, 2b | ||
534 | .hword \line | ||
535 | .popsection | ||
536 | #endif | ||
537 | .endm | ||
538 | |||
521 | #endif /* __ASM_ASSEMBLER_H__ */ | 539 | #endif /* __ASM_ASSEMBLER_H__ */ |