From 6d76a099dab94b0aa74eb6ff9a1aee645a44b984 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Fri, 9 Nov 2007 13:40:50 +0900 Subject: [PATCH] --- yaml --- r: 77690 b: refs/heads/master c: 114f132975ae8db3caa0c3420dc1083bae8d3757 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/include/asm-sh/thread_info.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 1c3926ba7212..2f9f53acf4df 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f64ee87614e80ca270de0b80c5164ab05f4f1d98 +refs/heads/master: 114f132975ae8db3caa0c3420dc1083bae8d3757 diff --git a/trunk/include/asm-sh/thread_info.h b/trunk/include/asm-sh/thread_info.h index 1f7e1deb8d92..d49ee9d868e5 100644 --- a/trunk/include/asm-sh/thread_info.h +++ b/trunk/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;