Gitweb:
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=114f132975ae8db3caa0c3420dc1083bae8d3757
Commit: 114f132975ae8db3caa0c3420dc1083bae8d3757
Parent: f64ee87614e80ca270de0b80c5164ab05f4f1d98
Author: Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Fri Nov 9 13:40:50 2007 +0900
Committer: Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 13:18:40 2008 +0900
sh: SH-5 version of current_thread_info().
Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
include/asm-sh/thread_info.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/include/asm-sh/thread_info.h b/include/asm-sh/thread_info.h
index 1f7e1de..d49ee9d 100644
--- a/include/asm-sh/thread_info.h
+++ b/include/asm-sh/thread_info.h
@@ -74,8 +74,10 @@ register unsigned long current_stack_pointer asm("r15")
__attribute_used__;
static inline struct thread_info *current_thread_info(void)
{
struct thread_info *ti;
-#ifdef CONFIG_CPU_HAS_SR_RB
- __asm__("stc r7_bank, %0" : "=r" (ti));
+#if defined(CONFIG_SUPERH64)
+ __asm__ __volatile__ ("getcon cr17, %0" : "=r" (ti));
+#elif defined(CONFIG_CPU_HAS_SR_RB)
+ __asm__ __volatile__ ("stc r7_bank, %0" : "=r" (ti));
#else
unsigned long __dummy;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html