]> err.no Git - linux-2.6/commitdiff
[ARM] 3420/1: Missing clobber in example code
authorPaul Brook <paul@codesourcery.com>
Tue, 28 Mar 2006 21:19:29 +0000 (22:19 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 28 Mar 2006 21:19:29 +0000 (22:19 +0100)
Patch from Paul Brook

The example code in the source documentation for __kernel_dmb
clobbers r0 but doesn't list it the asm clobber list.

Signed-off-by: Paul Brook <paul@codesourcery.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-armv.S

index 355914ffb1924371e9db73fbd8b64e9b737c740d..ab8e600c18c8effe7b5549714672352db02c8439 100644 (file)
@@ -666,7 +666,7 @@ __kuser_helper_start:
  *
  * #define __kernel_dmb() \
  *         asm volatile ( "mov r0, #0xffff0fff; mov lr, pc; sub pc, r0, #95" \
- *             : : : "lr","cc" )
+ *             : : : "r0", "lr","cc" )
  */
 
 __kuser_memory_barrier:                                @ 0xffff0fa0