Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
114f1329
Commit
114f1329
authored
Nov 09, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: SH-5 version of current_thread_info().
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
f64ee876
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
include/asm-sh/thread_info.h
include/asm-sh/thread_info.h
+4
-2
No files found.
include/asm-sh/thread_info.h
View file @
114f1329
...
@@ -74,8 +74,10 @@ register unsigned long current_stack_pointer asm("r15") __attribute_used__;
...
@@ -74,8 +74,10 @@ register unsigned long current_stack_pointer asm("r15") __attribute_used__;
static
inline
struct
thread_info
*
current_thread_info
(
void
)
static
inline
struct
thread_info
*
current_thread_info
(
void
)
{
{
struct
thread_info
*
ti
;
struct
thread_info
*
ti
;
#ifdef CONFIG_CPU_HAS_SR_RB
#if defined(CONFIG_SUPERH64)
__asm__
(
"stc r7_bank, %0"
:
"=r"
(
ti
));
__asm__
__volatile__
(
"getcon cr17, %0"
:
"=r"
(
ti
));
#elif defined(CONFIG_CPU_HAS_SR_RB)
__asm__
__volatile__
(
"stc r7_bank, %0"
:
"=r"
(
ti
));
#else
#else
unsigned
long
__dummy
;
unsigned
long
__dummy
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment