[syslinux:master] runkernel: we only look at the first letter in vga=...

syslinux-bot for H. Peter Anvin hpa at zytor.com
Mon Jan 25 09:33:03 PST 2010


Commit-ID:  85a05b3d45b83a23510841ea02fd2ebb38bc12ab
Gitweb:     http://syslinux.zytor.com/commit/85a05b3d45b83a23510841ea02fd2ebb38bc12ab
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Mon, 25 Jan 2010 09:30:26 -0800
Committer:  H. Peter Anvin <hpa at zytor.com>
CommitDate: Mon, 25 Jan 2010 09:30:26 -0800

runkernel: we only look at the first letter in vga=...

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 at zytor.com>


---
 core/runkernel.inc |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/core/runkernel.inc b/core/runkernel.inc
index f6ede38..f32fe1d 100644
--- a/core/runkernel.inc
+++ b/core/runkernel.inc
@@ -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



More information about the Syslinux-commits mailing list