* grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
and non-Apple. This instruction is shorter and faster, so no reason not to use it on both.
This commit is contained in:
parent
e77c81f6f8
commit
4480b95dcd
2 changed files with 6 additions and 4 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
|
||||||
|
and non-Apple. This instruction is shorter and faster,
|
||||||
|
so no reason not to use it on both.
|
||||||
|
|
||||||
2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
|
2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/lib/reed_solomon.c: Use section _text, _text rather than
|
* grub-core/lib/reed_solomon.c: Use section _text, _text rather than
|
||||||
|
|
|
@ -71,11 +71,7 @@ VARIABLE(grub_gdb_stack)
|
||||||
#define REG \reg
|
#define REG \reg
|
||||||
#define NDX \ndx
|
#define NDX \ndx
|
||||||
#endif
|
#endif
|
||||||
#ifdef __APPLE__
|
|
||||||
xorl %eax, %eax
|
xorl %eax, %eax
|
||||||
#else
|
|
||||||
movl $0, %eax
|
|
||||||
#endif
|
|
||||||
movw REG, EXT_C(grub_gdb_regs)+(NDX * 4)
|
movw REG, EXT_C(grub_gdb_regs)+(NDX * 4)
|
||||||
movw %ax, EXT_C(grub_gdb_regs)+(NDX * 4 + 2)
|
movw %ax, EXT_C(grub_gdb_regs)+(NDX * 4 + 2)
|
||||||
movl EXT_C(grub_gdb_regs)+(EAX * 4), %eax
|
movl EXT_C(grub_gdb_regs)+(EAX * 4), %eax
|
||||||
|
|
Loading…
Reference in a new issue