]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
xen/arm: Correct the opcode for BUG_INSTR on arm32
authorJulien Grall <julien.grall@linaro.org>
Thu, 4 Dec 2014 19:26:55 +0000 (19:26 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 9 Dec 2014 14:28:15 +0000 (14:28 +0000)
A 0 was forgotten when the arm32 BUG instruction opcode has been added in commit
3e802c6ca1fb9a9549258c2855a57cad483f3cbd "xen/arm: Correctly support WARN_ON".

This will result to use a valid instruction (mcreq 0, 3, r0, cr15, cr0, {7}),
and inhibit usage of BUG/WARN_ON and co.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/arm32/bug.h

index 155b4202836ed50dd7aee889785e5a0c4dcc57cd..3e66f35969fa2e3bb77616595dab6516d983106e 100644 (file)
@@ -6,7 +6,7 @@
 /* ARMv7 provides a list of undefined opcode (see A8.8.247 DDI 0406C.b)
  * Use one them encoding A1 to go in exception mode
  */
-#define BUG_OPCODE  0xe7f00f0
+#define BUG_OPCODE  0xe7f000f0
 
 #define BUG_INSTR ".word " __stringify(BUG_OPCODE)