From 1cb06f94c9c1525975254ed41942098d7a741840 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 30 Mar 2009 16:03:30 -0700 Subject: [PATCH] Fix the new kernel command-line parser Impact: bug fix We were incorrectly looking at [ds:di] instead of [es:di] for verifying that a command was properly terminated. Fix. Signed-off-by: H. Peter Anvin --- core/runkernel.inc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/runkernel.inc b/core/runkernel.inc index b3968db..d068aa5 100644 --- a/core/runkernel.inc +++ b/core/runkernel.inc @@ -126,9 +126,10 @@ parse_cmdline: ; This either needs to have been an option with parameter, ; or be followed by EOL/whitespace - cmp byte [di-1],'=' + mov ax,[es:di-1] ; AL = last chr; AH = following + cmp al,'=' je .is_match - cmp byte [di],' ' + cmp ah,' ' ja .no_match .is_match: pop ax ; Drop option pointer on stack -- 2.7.4