]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86,cmdline: Fix setting skip_realmode boolean on no-real-mode and tboot options
authorKeir Fraser <keir@xen.org>
Thu, 23 Aug 2012 14:02:04 +0000 (15:02 +0100)
committerKeir Fraser <keir@xen.org>
Thu, 23 Aug 2012 14:02:04 +0000 (15:02 +0100)
...effect should be cumulative.

Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/boot/cmdline.S

index deb1e9a34417230707666d283a3e996a1589b61a..05ffb941e5831f5a7f0066038f18c8764d865ead 100644 (file)
@@ -164,13 +164,15 @@ cmdline_parse_early:
         pushl   MB_cmdline(%ebx)
         call    .Lfind_option
         test    %eax,%eax
-        setnz   sym_phys(skip_realmode)
+        setnz   %al
+        or      %al,sym_phys(skip_realmode)
 
         /* Check for 'tboot=' command-line option. */
         movl    $sym_phys(.Ltboot_opt),4(%esp)
         call    .Lfind_option
         test    %eax,%eax
-        setnz   sym_phys(skip_realmode) /* tboot= implies no-real-mode */
+        setnz   %al
+        or      %al,sym_phys(skip_realmode) /* tboot= implies no-real-mode */
 
 .Lparse_edd:
         /* Check for 'edd=' command-line option. */