From: Vladimir Serbinenko Date: Sun, 24 Nov 2013 04:17:24 +0000 (+0100) Subject: * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple X-Git-Tag: grub-2.02-beta1~220 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4480b95dcd7b4499c2dad0f2020e1fb2b170e28a;p=thirdparty%2Fgrub.git * 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. --- diff --git a/ChangeLog b/ChangeLog index c284982e5..16cf7cee8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-11-24 Vladimir Serbinenko + + * 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 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than diff --git a/grub-core/gdb/i386/machdep.S b/grub-core/gdb/i386/machdep.S index 1615b0c9f..5825fe8ca 100644 --- a/grub-core/gdb/i386/machdep.S +++ b/grub-core/gdb/i386/machdep.S @@ -71,11 +71,7 @@ VARIABLE(grub_gdb_stack) #define REG \reg #define NDX \ndx #endif -#ifdef __APPLE__ xorl %eax, %eax -#else - movl $0, %eax -#endif movw REG, EXT_C(grub_gdb_regs)+(NDX * 4) movw %ax, EXT_C(grub_gdb_regs)+(NDX * 4 + 2) movl EXT_C(grub_gdb_regs)+(EAX * 4), %eax