mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
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:
1 parent
5fff433162
commit
cd27994856
1 file changed
+2
-1
@@ -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
|
||||
|
||||