[ARM] 4665/1: fix __und_usr wrt accessing the undefined insn in user space
authorNicolas Pitre <nico@cam.org>
Fri, 23 Nov 2007 21:38:54 +0000 (22:38 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 26 Nov 2007 19:44:02 +0000 (19:44 +0000)
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>
arch/arm/kernel/entry-armv.S

index 0d1bbea84df06a31d627513beffb38e0fb520f0f..29dec080a60431dd88bfa7b732940449054374ad 100644 (file)
@@ -453,9 +453,9 @@ __und_usr:
        @
        @  r0 - instruction
        @
-1:     ldrt    r0, [r4]
        adr     r9, ret_from_exception
        adr     lr, __und_usr_unknown
+1:     ldrt    r0, [r4]
        @
        @ fallthrough to call_fpe
        @