Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Nov 2008 00:00:02 +0000 (UTC)
From:      Luigi Rizzo <luigi@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r185458 - stable/7/sys/boot/i386/boot0
Message-ID:  <200811300000.mAU002At065992@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811300000.mAU002At065992>