Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
1b6d1b5e
Commit
1b6d1b5e
authored
May 19, 2006
by
Kyle McMartin
Committed by
Kyle McMartin
Jun 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PARISC] Use MFIA in current_text_addr on pa2.0 processors
Signed-off-by:
Kyle McMartin
<
kyle@parisc-linux.org
>
parent
7514b7a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
include/asm-parisc/processor.h
include/asm-parisc/processor.h
+6
-8
No files found.
include/asm-parisc/processor.h
View file @
1b6d1b5e
...
@@ -26,14 +26,12 @@
...
@@ -26,14 +26,12 @@
* Default implementation of macro that returns current
* Default implementation of macro that returns current
* instruction pointer ("program counter").
* instruction pointer ("program counter").
*/
*/
#ifdef CONFIG_PA20
/* We cannot use MFIA as it was added for PA2.0 - prumpf
#define current_ia(x) __asm__("mfia %0" : "=r"(x))
#else
/* mfia added in pa2.0 */
At one point there were no "0f/0b" type local symbols in gas for
#define current_ia(x) __asm__("blr 0,%0\n\tnop" : "=r"(x))
PA-RISC. This is no longer true, but this still seems like the
#endif
nicest way to implement this. */
#define current_text_addr() ({ void *pc; current_ia(pc); pc; })
#define current_text_addr() ({ void *pc; __asm__("\n\tblr 0,%0\n\tnop":"=r" (pc)); pc; })
#define TASK_SIZE (current->thread.task_size)
#define TASK_SIZE (current->thread.task_size)
#define TASK_UNMAPPED_BASE (current->thread.map_base)
#define TASK_UNMAPPED_BASE (current->thread.map_base)
...
...
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