diff --git a/asm-inline-fix b/asm-inline-fix new file mode 100644 index 0000000..4226682 --- /dev/null +++ b/asm-inline-fix @@ -0,0 +1,11 @@ +--- memtest86+-4.20/test.c.orig 2011-01-23 19:11:04.000000000 +0100 ++++ memtest86+-4.20/test.c 2012-10-05 14:57:19.000000000 +0200 +@@ -313,7 +313,7 @@ void movinvr() + "jb L200\n\t" + : "=D" (p) + : "D" (p), "b" (pe) +- : "eax", "edx" ++ : "eax", "ecx", "edx" + ); + + do_tick(); diff --git a/memtest86+.changes b/memtest86+.changes index 93bbe09..f4de69d 100644 --- a/memtest86+.changes +++ b/memtest86+.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Oct 5 13:16:57 UTC 2012 - duwe@suse.com + +- declare that the asm inline snippets in movinvr call e.g. rand() + and might clobber caller-saved registers a, d, _and_ c. + (bnc#773569) + ------------------------------------------------------------------- Wed Sep 5 10:07:27 UTC 2012 - lars@samba.org diff --git a/memtest86+.spec b/memtest86+.spec index 932b4ca..655e07a 100644 --- a/memtest86+.spec +++ b/memtest86+.spec @@ -36,6 +36,7 @@ Provides: memtest86 > 3.2 Url: http://www.memtest.org Source: http://www.memtest.org/download/%{version}/%{name}-%{version}.tar.bz2 Patch0: fix-destdir +Patch1: asm-inline-fix Summary: Memory Testing Image for x86 Architecture License: BSD-3-Clause Group: System/Boot @@ -62,6 +63,7 @@ Authors: %prep %setup %patch0 -p1 +%patch1 -p1 %build make