mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
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 MFC after: 3 days
This commit is contained in:
parent
bbee93a84e
commit
56eaeab499
1 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue