patch-2.1.101 linux/arch/arm/lib/backtrace.S

Next file: linux/arch/arm/lib/checksum.S
Previous file: linux/arch/arm/lib/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.100/linux/arch/arm/lib/backtrace.S linux/arch/arm/lib/backtrace.S
@@ -3,6 +3,7 @@
  *
  * Copyright (C) 1995, 1996 Russell King
  */
+#include <linux/config.h>
 #include <linux/linkage.h>
 #include <asm/assembler.h>
 		.text
@@ -21,9 +22,13 @@
 
 ENTRY(c_backtrace)
 		stmfd	sp!, {r4 - r8, lr}	@ Save an extra register so we have a location...
+#ifdef CONFIG_CPU_32
 		tst	r1, #0x10		@ 26 or 32-bit?
 		moveq	mask, #0xfc000003
 		movne	mask, #0
+#else
+		mov	mask, #0xfc000003
+#endif
 		tst	mask, r0
 		movne	r0, #0
 		movs	frame, r0

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov