[syslinux:master] diag/mbr/handoff: Code comments; reflow output

syslinux-bot for Gene Cumm gene.cumm at gmail.com
Fri Apr 1 15:54:43 PDT 2011


Commit-ID:  d583d2fbd6ca3c754de078f04bf5f87566dbda52
Gitweb:     http://syslinux.zytor.com/commit/d583d2fbd6ca3c754de078f04bf5f87566dbda52
Author:     Gene Cumm <gene.cumm at gmail.com>
AuthorDate: Sun, 27 Mar 2011 08:32:05 -0400
Committer:  Gene Cumm <gene.cumm at gmail.com>
CommitDate: Sun, 27 Mar 2011 08:32:05 -0400

diag/mbr/handoff: Code comments; reflow output

The printing of CR/LF was misplaced such that it'd print a blank line if
no PnP data was found.


---
 diag/mbr/handoff.S |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/diag/mbr/handoff.S b/diag/mbr/handoff.S
index b3fe513..2ac0ccc 100644
--- a/diag/mbr/handoff.S
+++ b/diag/mbr/handoff.S
@@ -221,17 +221,17 @@ scn_pnp:
 	/* 0x506E5024 */
 	movw	$0x5024, %dx
 	movw	$0x506E, %bx
-ch_pnp:	es lodsw
+ch_pnp:	es lodsw	/* Check for $PnP */
 	cmpw	%dx, %ax
 	jne	ch_pnp_l
 	es lodsw
 	cmpw	%bx, %ax
 	je	pr_pnp
-ch_pnp_l:
+ch_pnp_l:		/* Check $PnP failed; loop to next address */
 	addw	$14, %si
 	andw	$0xFFF0, %si
 	loopw	ch_pnp
-	jmp	end
+	jmp	pnp_end
 pr_pnp:
 	pushw	%si
 	call	wrstr
@@ -244,8 +244,8 @@ pr_pnp:
 	andw	$0xFFF0, %dx
 	call	wrhexw
 #endif	/* DEBUG_PNP */
-
 	call	crlf
+pnp_end:
 
 end:
 	jmp	bootfail



More information about the Syslinux-commits mailing list