소스 검색

[ARM] 4665/1: fix __und_usr wrt accessing the undefined insn in user space

The ldrt fixup code expects r9 to be set.

Signed-off-by: Nicolas Pitre <nico@marvell.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Nicolas Pitre 17 년 전
부모
커밋
d28a170d5b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      arch/arm/kernel/entry-armv.S

+ 1 - 1
arch/arm/kernel/entry-armv.S

@@ -453,9 +453,9 @@ __und_usr:
 	@
 	@
 	@  r0 - instruction
 	@  r0 - instruction
 	@
 	@
-1:	ldrt	r0, [r4]
 	adr	r9, ret_from_exception
 	adr	r9, ret_from_exception
 	adr	lr, __und_usr_unknown
 	adr	lr, __und_usr_unknown
+1:	ldrt	r0, [r4]
 	@
 	@
 	@ fallthrough to call_fpe
 	@ fallthrough to call_fpe
 	@
 	@