[2319] 2009-06-12 Vladimir Serbinenko <[email protected]>

Vladimir Serbinenko <[email protected]>
Newsgroups gmane.comp.boot-loaders.grub.cvs
Message-ID <[email protected]>
Revision: 2319
          http://svn.sv.gnu.org/viewvc/?view=rev&root=grub&revision=2319
Author:   phcoder
Date:     2009-06-12 18:22:38 +0000 (Fri, 12 Jun 2009)
Log Message:
-----------
2009-06-12  Vladimir Serbinenko  <[email protected]>

	* commands/i386/pc/drivemap_int13h.S: add more comments

Modified Paths:
--------------
    trunk/grub2/ChangeLog
    trunk/grub2/commands/i386/pc/drivemap_int13h.S

Modified: trunk/grub2/ChangeLog
===================================================================
--- trunk/grub2/ChangeLog	2009-06-12 06:12:38 UTC (rev 2318)
+++ trunk/grub2/ChangeLog	2009-06-12 18:22:38 UTC (rev 2319)
@@ -1,3 +1,7 @@
+2009-06-12  Vladimir Serbinenko  <[email protected]>
+
+	* commands/i386/pc/drivemap_int13h.S: add more comments
+
 2009-06-11  Pavel Roskin  <[email protected]>
 
 	* Makefile.in (uninstall): Uninstall manuals.

Modified: trunk/grub2/commands/i386/pc/drivemap_int13h.S
===================================================================
--- trunk/grub2/commands/i386/pc/drivemap_int13h.S	2009-06-12 06:12:38 UTC (rev 2318)
+++ trunk/grub2/commands/i386/pc/drivemap_int13h.S	2009-06-12 18:22:38 UTC (rev 2319)
@@ -56,6 +56,7 @@
 	pop	%bx
 	pop	%ax
 
+	/* If the call isn't ah=0x8 or ah=0x15 we must restore %dx.  */
 	cmpb	$0x8, %ah
 	jz	norestore
 	cmpb	$0x15, %ah
@@ -71,7 +72,7 @@
 	mov	%sp, %bp
 
 tail:
-
+	/* Save new flags below %esp so the caller will recieve new flags.  */
 	pushf
 	pop	%dx
 	mov	%dx, 8(%bp)
@@ -93,7 +94,7 @@
 	push	%bp
 	mov	%sp, %bp
 
-	/* Save %dx.  */
+	/* Save %dx. So it won't be restored to original value.  */
 	mov	%dx, 2(%bp)
 
 	jmp tail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.