1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00
freebsd/sys/boot/i386
John Baldwin 4b9657e974 Optimize the int 15/87 handler for space to shave another 16 bytes off of
BTX (and thus boot2):
- Don't bother saving %eax, %ebx, or %ecx as it is not necessary.
- Use a more compact sequence to load the base value out of a GDT entry
  by loading the contiguous low 24 bits into the upper 24 bits of %eax,
  loading the high 8 bits into %al, and using a ror to rotate the bits
  (2 mov's and a ror) rather than loading the pieces in smaller chunks
  (3 mov's and a shl).
- Use movzwl + leal instead of movl + movw + shll + addl.
- Use 'xchgl %eax,%foo' rather than 'movl %eax,%foo' for cases where
  it's ok to trash %eax.  xchgl %eax, foo is a 1-byte opcode whereas the
  mov is a 2-byte opcode.
- Use movzwl rather than xorl + movw.

MFC after:	1 week
2006-09-28 19:38:02 +00:00
..
boot0 Restore the pre-5.x behavior of only beeping if the user makes a bad 2006-05-03 13:43:46 +00:00
boot0ext
boot0sio
boot2 Minor whitespace tweak. 2006-04-11 20:09:42 +00:00
btx Optimize the int 15/87 handler for space to shave another 16 bytes off of 2006-09-28 19:38:02 +00:00
cdboot Tweak comment. 2006-04-11 17:36:08 +00:00
gptboot Consistently use OPT_* macros to test/set boot options. 2005-11-03 07:35:36 +00:00
kgzldr
libi386 Add an 'smap' command that dumps out the BIOS SMAP. 2006-09-28 19:07:13 +00:00
loader Add an 'smap' command that dumps out the BIOS SMAP. 2006-09-28 19:07:13 +00:00
mbr
pxeldr - Include <sys/reboot.h> to get the RB_* defines. 2006-09-05 19:28:03 +00:00
Makefile
Makefile.inc Add -march=i386 to fix amd64 build by generating the same code 2006-09-28 10:02:04 +00:00