patch-2.2.7 linux/include/asm-sparc/asmmacro.h

Next file: linux/include/asm-sparc/atomic.h
Previous file: linux/include/asm-ppc/siginfo.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.6/linux/include/asm-sparc/asmmacro.h linux/include/asm-sparc/asmmacro.h
@@ -26,7 +26,7 @@
 
 #define GET_PROCESSOR_MID(reg, tmp) \
 	rd	%tbr, %reg; \
-	sethi	C_LABEL(mid_xlate), %tmp; \
+	sethi	%hi(C_LABEL(mid_xlate)), %tmp; \
 	srl	%reg, 12, %reg; \
 	or	%tmp, %lo(C_LABEL(mid_xlate)), %tmp; \
 	and	%reg, 3, %reg; \
@@ -34,7 +34,7 @@
 
 #define GET_PROCESSOR_OFFSET(reg, tmp) \
 	GET_PROCESSOR_ID(reg) \
-	sethi	C_LABEL(cpu_offset), %tmp; \
+	sethi	%hi(C_LABEL(cpu_offset)), %tmp; \
 	sll	%reg, 2, %reg; \
 	or	%tmp, %lo(C_LABEL(cpu_offset)), %tmp; \
 	ld	[%tmp + %reg], %reg;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)