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
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to