Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Nov 2012 07:30:24 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r242907 - stable/9/sys/boot/i386/boot2
Message-ID:  <201211120730.qAC7UOH3076106@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Mon Nov 12 07:30:24 2012
New Revision: 242907
URL: http://svnweb.freebsd.org/changeset/base/242907

Log:
  MFC r242804:
  
  Shrink boot2 by 8 bytes, by eliminating some unneeded instructions in
  sio.S.  This is not particularly needed for head right now, but it is
  intended to merge to stable/9, to fix boot2 build with clang there.
  
  Reviewed by:	avg

Modified:
  stable/9/sys/boot/i386/boot2/sio.S
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/boot/   (props changed)

Modified: stable/9/sys/boot/i386/boot2/sio.S
==============================================================================
--- stable/9/sys/boot/i386/boot2/sio.S	Mon Nov 12 07:25:51 2012	(r242906)
+++ stable/9/sys/boot/i386/boot2/sio.S	Mon Nov 12 07:30:24 2012	(r242907)
@@ -40,13 +40,11 @@ sio_init:	pushl %eax
 		movb $0x3,%al			# Set RTS,
 		outb %al,(%dx)			#  DTR
 		incl %edx			# Line status reg
-		call sio_flush
-		ret
+		# Fallthrough
 
 /* int sio_flush(void) */
 
-sio_flush:	xorl %eax,%eax			# Return value
-		xorl %ecx,%ecx			# Timeout
+sio_flush:	xorl %ecx,%ecx			# Timeout
 		movb $0x80,%ch			#  counter
 sio_flush.1:	call sio_ischar 		# Check for character
 		jz sio_flush.2			# Till none



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