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
nexedi
linux
Commits
4ef30322
Commit
4ef30322
authored
Jan 23, 2005
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] msr can take immediate constants.
Signed-off-by:
Russell King
<
rmk@arm.linux.org.uk
>
parent
dea9f2aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
arch/arm/kernel/fiq.c
arch/arm/kernel/fiq.c
+8
-10
No files found.
arch/arm/kernel/fiq.c
View file @
4ef30322
...
@@ -89,16 +89,15 @@ void set_fiq_handler(void *start, unsigned int length)
...
@@ -89,16 +89,15 @@ void set_fiq_handler(void *start, unsigned int length)
*/
*/
void
set_fiq_regs
(
struct
pt_regs
*
regs
)
void
set_fiq_regs
(
struct
pt_regs
*
regs
)
{
{
register
unsigned
long
tmp
,
tmp2
;
register
unsigned
long
tmp
;
__asm__
volatile
(
__asm__
volatile
(
"mrs %0, cpsr
\n
\
"mrs %0, cpsr
\n
\
mov %1, %3
\n
\
msr cpsr_c, %2 @ select FIQ mode
\n
\
msr cpsr_c, %1 @ select FIQ mode
\n
\
mov r0, r0
\n
\
mov r0, r0
\n
\
ldmia %
2
, {r8 - r14}
\n
\
ldmia %
1
, {r8 - r14}
\n
\
msr cpsr_c, %0 @ return to SVC mode
\n
\
msr cpsr_c, %0 @ return to SVC mode
\n
\
mov r0, r0"
mov r0, r0"
:
"=&r"
(
tmp
)
,
"=&r"
(
tmp2
)
:
"=&r"
(
tmp
)
:
"r"
(
&
regs
->
ARM_r8
),
"I"
(
PSR_I_BIT
|
PSR_F_BIT
|
FIQ_MODE
)
:
"r"
(
&
regs
->
ARM_r8
),
"I"
(
PSR_I_BIT
|
PSR_F_BIT
|
FIQ_MODE
)
/* These registers aren't modified by the above code in a way
/* These registers aren't modified by the above code in a way
visible to the compiler, but we mark them as clobbers anyway
visible to the compiler, but we mark them as clobbers anyway
...
@@ -109,16 +108,15 @@ void set_fiq_regs(struct pt_regs *regs)
...
@@ -109,16 +108,15 @@ void set_fiq_regs(struct pt_regs *regs)
void
get_fiq_regs
(
struct
pt_regs
*
regs
)
void
get_fiq_regs
(
struct
pt_regs
*
regs
)
{
{
register
unsigned
long
tmp
,
tmp2
;
register
unsigned
long
tmp
;
__asm__
volatile
(
__asm__
volatile
(
"mrs %0, cpsr
\n
\
"mrs %0, cpsr
\n
\
mov %1, %3
\n
\
msr cpsr_c, %2 @ select FIQ mode
\n
\
msr cpsr_c, %1 @ select FIQ mode
\n
\
mov r0, r0
\n
\
mov r0, r0
\n
\
stmia %
2
, {r8 - r14}
\n
\
stmia %
1
, {r8 - r14}
\n
\
msr cpsr_c, %0 @ return to SVC mode
\n
\
msr cpsr_c, %0 @ return to SVC mode
\n
\
mov r0, r0"
mov r0, r0"
:
"=&r"
(
tmp
)
,
"=&r"
(
tmp2
)
:
"=&r"
(
tmp
)
:
"r"
(
&
regs
->
ARM_r8
),
"I"
(
PSR_I_BIT
|
PSR_F_BIT
|
FIQ_MODE
)
:
"r"
(
&
regs
->
ARM_r8
),
"I"
(
PSR_I_BIT
|
PSR_F_BIT
|
FIQ_MODE
)
/* These registers aren't modified by the above code in a way
/* These registers aren't modified by the above code in a way
visible to the compiler, but we mark them as clobbers anyway
visible to the compiler, but we mark them as clobbers anyway
...
...
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