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
5a7ebbf8
Commit
5a7ebbf8
authored
Apr 16, 2014
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MIPS: branch: New helpers to modify branch delay slot flag in struct pt_regs
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
2209bcb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
arch/mips/include/asm/branch.h
arch/mips/include/asm/branch.h
+10
-0
No files found.
arch/mips/include/asm/branch.h
View file @
5a7ebbf8
...
...
@@ -24,6 +24,16 @@ static inline int delay_slot(struct pt_regs *regs)
return
regs
->
cp0_cause
&
CAUSEF_BD
;
}
static
inline
void
clear_delay_slot
(
struct
pt_regs
*
regs
)
{
regs
->
cp0_cause
&=
~
CAUSEF_BD
;
}
static
inline
void
set_delay_slot
(
struct
pt_regs
*
regs
)
{
regs
->
cp0_cause
|=
CAUSEF_BD
;
}
static
inline
unsigned
long
exception_epc
(
struct
pt_regs
*
regs
)
{
if
(
likely
(
!
delay_slot
(
regs
)))
...
...
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