]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm64: Make sure we get all debug output
authorDirk Behme <dirk.behme@de.bosch.com>
Thu, 4 Feb 2016 16:49:35 +0000 (17:49 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 18 Feb 2016 10:13:42 +0000 (10:13 +0000)
Starting in the wrong ELx mode I get the following debug output:

...
- Current EL 00000004 -
- Xen must be entered in NS EL2 mode -
- Boot failed -

The output of "Please update the bootloader" is missing here, because
string concatenation in gas, unlike in C, keeps the \0 between each
individual string.

Make sure this is output, too. With this, we get

...
- Current EL 00000004 -
- Xen must be entered in NS EL2 mode -
- Please update the bootloader -
- Boot failed -

as intended.

Signed-off-by: Dirk Behme <dirk.behme@de.bosch.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- added same change to arm32 case ]

xen/arch/arm/arm32/head.S
xen/arch/arm/arm64/head.S

index 5c0263ea15890779a3086e8ce4dca5de1eb080f2..e1f29bdebcc5782f42b7fbc34af47bc979153608 100644 (file)
@@ -173,8 +173,8 @@ common_start:
         beq   hyp
 
         /* OK, we're boned. */
-        PRINT("- Xen must be entered in NS Hyp mode -\r\n" \
-              "- Please update the bootloader -\r\n")
+        PRINT("- Xen must be entered in NS Hyp mode -\r\n")
+        PRINT("- Please update the bootloader -\r\n")
         b     fail
 
 hyp:    PRINT("- Xen starting in Hyp mode -\r\n")
index 9ed9a93029dbcdfdfd2ebd10f82e14f05ac48b53..19fa2bb3f78520081b0e8675d8356150c58cea08 100644 (file)
@@ -309,8 +309,8 @@ common_start:
         b.eq  el2 /* Yes */
 
         /* OK, we're boned. */
-        PRINT("- Xen must be entered in NS EL2 mode -\r\n" \
-              "- Please update the bootloader -\r\n")
+        PRINT("- Xen must be entered in NS EL2 mode -\r\n")
+        PRINT("- Please update the bootloader -\r\n")
         b fail
 
 el2:    PRINT("- Xen starting at EL2 -\r\n")