projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f64ee87
)
sh: SH-5 version of current_thread_info().
author
Paul Mundt
<lethal@linux-sh.org>
Fri, 9 Nov 2007 04:40:50 +0000
(13:40 +0900)
committer
Paul Mundt
<lethal@linux-sh.org>
Mon, 28 Jan 2008 04:18:40 +0000
(13:18 +0900)
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/thread_info.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-sh/thread_info.h
b/include/asm-sh/thread_info.h
index 1f7e1deb8d924bf3efc0be3035503ab7bbcb77ef..d49ee9d868e547be1c1ac00b6b56cea1d0a64335 100644
(file)
--- 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;
This page took
0.024944 seconds
and
5
git commands to generate.