x86: fix early boot command line parsing

There is no reliable way to encode NUL character as a character so encode
it as a number. Read: http://sourceware.org/binutils/docs/as/Characters.html.
Octal and hex encoding do not work on at least one system (GNU assembler
version 2.22 (x86_64-linux-gnu) using BFD version (GNU Binutils for Debian) 2.22).
Without this fix e.g. no-real-mode option at the end of xen.gz command line
is not detected.

Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
master commit: dc37e0bfff
master date: 2013-12-04 13:26:37 +0100
This commit is contained in:
Daniel Kiper authored and Jan Beulich committed 2013-12-09 14:32:54 +01:00
1 parent 5fff433162
commit cd27994856
1 file changed
+2 -1
+2 -1
View File
@@ -138,7 +138,8 @@
call .Lstrlen
add $4,%esp
xadd %eax,%ebx
cmpb $'\0',(%ebx)
/* NUL check (as $'\0' == 0x30 in GAS) */
cmpb $0,(%ebx)
je 3f
cmpb $' ',(%ebx)
je 3f
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.