]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: system: Use the correct parameter name in local_irq_restore
authorJulien Grall <julien.grall@arm.com>
Wed, 20 Jul 2016 16:10:43 +0000 (17:10 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 22 Jul 2016 01:26:47 +0000 (18:26 -0700)
The parameter to store the flags is called 'x' and not 'flags'.
Thankfully all the user of the macro is passing 'flags'.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/include/asm-arm/arm32/system.h
xen/include/asm-arm/arm64/system.h

index b47b942e030319474d94b34a5e17a2e2e4372dc2..c617b4043895f0708079a0a2fb3ed730e7ca3695 100644 (file)
@@ -24,7 +24,7 @@
     asm volatile (                                               \
             "msr     cpsr_c, %0      @ local_irq_restore\n"      \
             :                                                    \
-            : "r" (flags)                                        \
+            : "r" (x)                                            \
             : "memory", "cc");                                   \
 })
 
index 6efced3b3f624e3eab6773bb66a52bc6d57bf27a..2e2ee212a126c907d5575a28f3d7d18f5f285e05 100644 (file)
@@ -40,7 +40,7 @@
     asm volatile (                                               \
         "msr    daif, %0                // local_irq_restore"    \
         :                                                        \
-        : "r" (flags)                                            \
+        : "r" (x)                                                \
         : "memory");                                             \
 })