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
86071b63
Commit
86071b63
authored
Jul 14, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanups.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
7e35952b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
include/asm-mips/hazards.h
include/asm-mips/hazards.h
+12
-10
No files found.
include/asm-mips/hazards.h
View file @
86071b63
...
@@ -148,15 +148,13 @@ __asm__(
...
@@ -148,15 +148,13 @@ __asm__(
#endif
#endif
/*
/*
*
mtc0->mfc0 hazard
*
Interrupt enable/disable hazards
*
The 24K has a 2 cycle mtc0/mfc0 execution hazard.
*
Some processors have hazards when modifying
*
It is a MIPS32R2 processor so ehb will clear the hazard.
*
the status register to change the interrupt state
*/
*/
#ifdef CONFIG_CPU_MIPSR2
#ifdef CONFIG_CPU_MIPSR2
/*
* Use a macro for ehb unless explicit support for MIPSR2 is enabled
*/
__asm__
(
__asm__
(
" .macro
\t
irq_enable_hazard
\n\t
"
" .macro
\t
irq_enable_hazard
\n\t
"
" _ehb
\n\t
"
" _ehb
\n\t
"
...
@@ -164,19 +162,23 @@ __asm__(
...
@@ -164,19 +162,23 @@ __asm__(
"
\n\t
"
"
\n\t
"
" .macro
\t
irq_disable_hazard
\n\t
"
" .macro
\t
irq_disable_hazard
\n\t
"
" _ehb
\n\t
"
" _ehb
\n\t
"
" .endm
\n\t
"
"
\n\t
"
" .macro
\t
back_to_back_c0_hazard
\n\t
"
" _ehb
\n\t
"
" .endm"
);
" .endm"
);
#define irq_enable_hazard() \
#define irq_enable_hazard() \
__asm__ __volatile__( \
__asm__ __volatile__( \
"
_ehb\t\t\t\t#
irq_enable_hazard")
"irq_enable_hazard")
#define irq_disable_hazard() \
#define irq_disable_hazard() \
__asm__ __volatile__( \
__asm__ __volatile__( \
"
_ehb\t\t\t\t#
irq_disable_hazard")
"irq_disable_hazard")
#define back_to_back_c0_hazard() \
#define back_to_back_c0_hazard() \
__asm__ __volatile__( \
__asm__ __volatile__( \
"
_ehb\t\t\t\t#
back_to_back_c0_hazard")
"back_to_back_c0_hazard")
#elif defined(CONFIG_CPU_R10000) || defined(CONFIG_CPU_RM9000)
#elif defined(CONFIG_CPU_R10000) || defined(CONFIG_CPU_RM9000)
...
@@ -218,7 +220,7 @@ __asm__(
...
@@ -218,7 +220,7 @@ __asm__(
#define irq_enable_hazard() do { } while (0)
#define irq_enable_hazard() do { } while (0)
#define irq_disable_hazard() \
#define irq_disable_hazard() \
__asm__ __volatile__( \
__asm__ __volatile__( \
"
_ssnop; _ssnop; _ssnop;\t\t#
irq_disable_hazard")
"irq_disable_hazard")
#define back_to_back_c0_hazard() \
#define back_to_back_c0_hazard() \
__asm__ __volatile__( \
__asm__ __volatile__( \
...
...
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