From b54c61364642089dd611ed249cd1a7060a331f98 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 16 Mar 2012 10:22:01 -0700 Subject: [PATCH] 3.2-stable patches added patches: sparc32-add-av8-to-assembler-command-line.patch --- queue-3.2/series | 1 + ...32-add-av8-to-assembler-command-line.patch | 38 +++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 queue-3.2/sparc32-add-av8-to-assembler-command-line.patch diff --git a/queue-3.2/series b/queue-3.2/series index 6775828af83..e7ebf8807c2 100644 --- a/queue-3.2/series +++ b/queue-3.2/series @@ -30,3 +30,4 @@ block-fix-null-pointer-dereference-in-sd_revalidate_disk.patch block-sx8-fix-pointer-math-issue-getting-fw-version.patch block-fix-__blkdev_get-and-add_disk-race-condition.patch block-use-a-freezable-workqueue-for-disk-event-polling.patch +sparc32-add-av8-to-assembler-command-line.patch diff --git a/queue-3.2/sparc32-add-av8-to-assembler-command-line.patch b/queue-3.2/sparc32-add-av8-to-assembler-command-line.patch new file mode 100644 index 00000000000..f1a68494a84 --- /dev/null +++ b/queue-3.2/sparc32-add-av8-to-assembler-command-line.patch @@ -0,0 +1,38 @@ +From e0adb9902fb338a9fe634c3c2a3e474075c733ba Mon Sep 17 00:00:00 2001 +From: "David S. Miller" +Date: Tue, 13 Mar 2012 18:19:51 -0700 +Subject: sparc32: Add -Av8 to assembler command line. + +From: "David S. Miller" + +commit e0adb9902fb338a9fe634c3c2a3e474075c733ba upstream. + +Newer version of binutils are more strict about specifying the +correct options to enable certain classes of instructions. + +The sparc32 build is done for v7 in order to support sun4c systems +which lack hardware integer multiply and divide instructions. + +So we have to pass -Av8 when building the assembler routines that +use these instructions and get patched into the kernel when we find +out that we have a v8 capable cpu. + +Reported-by: Paul Gortmaker +Signed-off-by: David S. Miller +Signed-off-by: Greg Kroah-Hartman + +--- + arch/sparc/Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/arch/sparc/Makefile ++++ b/arch/sparc/Makefile +@@ -31,7 +31,7 @@ UTS_MACHINE := sparc + + #KBUILD_CFLAGS += -g -pipe -fcall-used-g5 -fcall-used-g7 + KBUILD_CFLAGS += -m32 -pipe -mno-fpu -fcall-used-g5 -fcall-used-g7 +-KBUILD_AFLAGS += -m32 ++KBUILD_AFLAGS += -m32 -Wa,-Av8 + + #LDFLAGS_vmlinux = -N -Ttext 0xf0004000 + # Since 2.5.40, the first stage is left not btfix-ed. -- 2.47.3