]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
authorVladimir Serbinenko <phcoder@gmail.com>
Sun, 24 Nov 2013 04:17:24 +0000 (05:17 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sun, 24 Nov 2013 04:17:24 +0000 (05:17 +0100)
and non-Apple. This instruction is shorter and faster,
so no reason not to use it on both.

ChangeLog
grub-core/gdb/i386/machdep.S

index c284982e53eb1333fd8f5a570528fc42a9a535dc..16cf7cee85f5de06b72a893b6a3ba8d658884fdb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
index 1615b0c9fe98b824d0adf86e6f09d1af6bdc5a48..5825fe8caf90eda652778bada2eba21654e51fe5 100644 (file)
@@ -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