m32r: Move GET_THREAD_INFO definition out of asm/thread_info.h.
authorTim Abbott <tabbott@ksplice.com>
Fri, 18 Sep 2009 20:32:46 +0000 (16:32 -0400)
committerHirokazu Takata <takata@linux-m32r.org>
Tue, 22 Sep 2009 15:29:39 +0000 (00:29 +0900)
Previously, asm/thread_info.h was not usable from linker scripts
because it contains a piece of .macro code.  Since that code was only
used in the m32r entry.S, the right fix is probably to move the macro
there.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
arch/m32r/include/asm/thread_info.h
arch/m32r/kernel/entry.S

index 4d6616936c366891da79dd9ba50fcf9b948ebc9c..ed240b6e8e77a37ea96241063167ffce66ef0503 100644 (file)
@@ -125,15 +125,6 @@ static inline unsigned int get_thread_fault_code(void)
        return ti->flags >> TI_FLAG_FAULT_CODE_SHIFT;
 }
 
-#else /* !__ASSEMBLY__ */
-
-/* how to get the thread information struct from ASM */
-#define GET_THREAD_INFO(reg)   GET_THREAD_INFO reg
-       .macro GET_THREAD_INFO reg
-       ldi     \reg, #-THREAD_SIZE
-       and     \reg, sp
-       .endm
-
 #endif
 
 /*
index 612d35b082a6826d59dda272612df7d295fa2e8c..403869833b98fe6c95fd360d80cd762f3a5008e2 100644 (file)
 #define resume_kernel          restore_all
 #endif
 
+/* how to get the thread information struct from ASM */
+#define GET_THREAD_INFO(reg)   GET_THREAD_INFO reg
+       .macro GET_THREAD_INFO reg
+       ldi     \reg, #-THREAD_SIZE
+       and     \reg, sp
+       .endm
+
 ENTRY(ret_from_fork)
        pop     r0
        bl      schedule_tail