svn commit: r185458 - stable/7/sys/boot/i386/boot0

Luigi Rizzo luigi at FreeBSD.org
Sat Nov 29 16:00:03 PST 2008


Author: luigi
Date: Sun Nov 30 00:00:02 2008
New Revision: 185458
URL: http://svn.freebsd.org/changeset/base/185458

Log:
  MFC: pass the correct value in %si to the next stage boot
  
  Approved by:	re@

Modified:
  stable/7/sys/boot/i386/boot0/boot0.S

Modified: stable/7/sys/boot/i386/boot0/boot0.S
==============================================================================
--- stable/7/sys/boot/i386/boot0/boot0.S	Sat Nov 29 21:48:12 2008	(r185457)
+++ stable/7/sys/boot/i386/boot0/boot0.S	Sun Nov 30 00:00:02 2008	(r185458)
@@ -319,8 +319,9 @@ main.15:	movw $LOAD,%bx			# Address for 
 		jc main.10			# If error
 		cmpw $MAGIC,0x1fe(%bx)		# Bootable?
 		jne main.10			# No
-		movw $crlf,%si			# Leave some
-		callw puts			#  space
+		pushw %si			# Save ptr to selected part.
+		callw putn			# Leave some space
+		popw %si			# Restore, next stage uses it
 		jmp *%bx			# Invoke bootstrap
 
 /*


More information about the svn-src-stable-7 mailing list