4b9657e974
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 |
||
---|---|---|
.. | ||
boot0 | ||
boot0ext | ||
boot0sio | ||
boot2 | ||
btx | ||
cdboot | ||
gptboot | ||
kgzldr | ||
libi386 | ||
loader | ||
mbr | ||
pxeldr | ||
Makefile | ||
Makefile.inc |