15c15
< * $FreeBSD: head/sys/boot/i386/boot2/sio.S 220337 2011-04-04 18:23:55Z rdivacky $
---
> * $FreeBSD: head/sys/boot/i386/boot2/sio.S 241301 2012-10-06 20:08:29Z avg $
27c27
< /* void sio_init(int div) */
---
> /* int sio_init(int div) */
46c46
< /* void sio_flush(void) */
---
> /* int sio_flush(void) */
48,51c48,55
< sio_flush.0: call sio_getc.1 # Get character
< sio_flush: call sio_ischar # Check for character
< jnz sio_flush.0 # Till none
< ret # To caller
---
> sio_flush: xorl %eax,%eax # Return value
> xorl %ecx,%ecx # Timeout
> movb $0x80,%ch # counter
> sio_flush.1: call sio_ischar # Check for character
> jz sio_flush.2 # Till none
> loop sio_flush.1 # or counter is zero
> movb $1, %al # Exhausted all tries
> sio_flush.2: ret # To caller
< * $FreeBSD: head/sys/boot/i386/boot2/sio.S 220337 2011-04-04 18:23:55Z rdivacky $
---
> * $FreeBSD: head/sys/boot/i386/boot2/sio.S 241301 2012-10-06 20:08:29Z avg $
27c27
< /* void sio_init(int div) */
---
> /* int sio_init(int div) */
46c46
< /* void sio_flush(void) */
---
> /* int sio_flush(void) */
48,51c48,55
< sio_flush.0: call sio_getc.1 # Get character
< sio_flush: call sio_ischar # Check for character
< jnz sio_flush.0 # Till none
< ret # To caller
---
> sio_flush: xorl %eax,%eax # Return value
> xorl %ecx,%ecx # Timeout
> movb $0x80,%ch # counter
> sio_flush.1: call sio_ischar # Check for character
> jz sio_flush.2 # Till none
> loop sio_flush.1 # or counter is zero
> movb $1, %al # Exhausted all tries
> sio_flush.2: ret # To caller