runkernel: we only look at the first letter in vga=...
authorH. Peter Anvin <hpa@zytor.com>
Mon, 25 Jan 2010 17:30:26 +0000 (09:30 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 25 Jan 2010 17:30:26 +0000 (09:30 -0800)
We only look at the first letter in the handling of the special vga=
strings, make that manifest in the assembly code so we don't end up
with unnecessary warnings.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/runkernel.inc

index f6ede38..f32fe1d 100644 (file)
@@ -140,16 +140,16 @@ parse_cmdline:
 opt_vga:
                mov ax,[es:di-1]
                mov bx,-1
-               cmp ax,'=nor'                   ; vga=normal
+               cmp ax,'=n'                     ; vga=normal
                je .vc0
                dec bx                          ; bx <- -2
-               cmp ax,'=ext'                   ; vga=ext
+               cmp ax,'=e'                     ; vga=ext
                je .vc0
                dec bx                          ; bx <- -3
-               cmp ax,'=ask'                   ; vga=ask
+               cmp ax,'=a'                     ; vga=ask
                je .vc0
                mov bx,0x0f04                   ; bx <- 0x0f04 (current mode)
-               cmp ax,'=cur'                   ; vga=current
+               cmp ax,'=c'                     ; vga=current
                je .vc0
                call parseint_esdi              ; vga=<number>
                jc .skip                        ; Not an integer