diff options
author | Tim Abbott <tabbott@ksplice.com> | 2009-09-18 16:32:46 -0400 |
---|---|---|
committer | Hirokazu Takata <takata@linux-m32r.org> | 2009-09-22 11:29:39 -0400 |
commit | 00b01b246bc2e28763cbd85f0dc949d6c0d38c13 (patch) | |
tree | b00707b24b74d05da33e6d35ef0711a8bef812bf /arch/m32r/include | |
parent | a7efb879ab5b07726873ace8305373bdf68be8a8 (diff) |
m32r: Move GET_THREAD_INFO definition out of asm/thread_info.h.
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>
Diffstat (limited to 'arch/m32r/include')
-rw-r--r-- | arch/m32r/include/asm/thread_info.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/m32r/include/asm/thread_info.h b/arch/m32r/include/asm/thread_info.h index 4d6616936c36..ed240b6e8e77 100644 --- a/arch/m32r/include/asm/thread_info.h +++ b/arch/m32r/include/asm/thread_info.h | |||
@@ -125,15 +125,6 @@ static inline unsigned int get_thread_fault_code(void) | |||
125 | return ti->flags >> TI_FLAG_FAULT_CODE_SHIFT; | 125 | return ti->flags >> TI_FLAG_FAULT_CODE_SHIFT; |
126 | } | 126 | } |
127 | 127 | ||
128 | #else /* !__ASSEMBLY__ */ | ||
129 | |||
130 | /* how to get the thread information struct from ASM */ | ||
131 | #define GET_THREAD_INFO(reg) GET_THREAD_INFO reg | ||
132 | .macro GET_THREAD_INFO reg | ||
133 | ldi \reg, #-THREAD_SIZE | ||
134 | and \reg, sp | ||
135 | .endm | ||
136 | |||
137 | #endif | 128 | #endif |
138 | 129 | ||
139 | /* | 130 | /* |