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
5595d5bb
Commit
5595d5bb
authored
Mar 26, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add non context synchronising version of mtmsrd
parent
bc3126ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
include/asm-ppc64/hw_irq.h
include/asm-ppc64/hw_irq.h
+4
-4
include/asm-ppc64/processor.h
include/asm-ppc64/processor.h
+3
-1
No files found.
include/asm-ppc64/hw_irq.h
View file @
5595d5bb
...
...
@@ -35,13 +35,13 @@ extern void __no_lpq_restore_flags(unsigned long);
#else
#define __save_flags(flags) ((flags) = mfmsr())
#define __restore_flags(flags)
mtmsrd(flags
)
#define __restore_flags(flags)
__mtmsrd((flags), 1
)
static
inline
void
__cli
(
void
)
{
unsigned
long
msr
;
msr
=
mfmsr
();
mtmsrd
(
msr
&
~
MSR_EE
);
__mtmsrd
(
msr
&
~
MSR_EE
,
1
);
__asm__
__volatile__
(
""
:
:
:
"memory"
);
}
...
...
@@ -50,7 +50,7 @@ static inline void __sti(void)
unsigned
long
msr
;
__asm__
__volatile__
(
""
:
:
:
"memory"
);
msr
=
mfmsr
();
mtmsrd
(
msr
|
MSR_EE
);
__mtmsrd
(
msr
|
MSR_EE
,
1
);
}
static
inline
void
__do_save_and_cli
(
unsigned
long
*
flags
)
...
...
@@ -58,7 +58,7 @@ static inline void __do_save_and_cli(unsigned long *flags)
unsigned
long
msr
;
msr
=
mfmsr
();
*
flags
=
msr
;
mtmsrd
(
msr
&
~
MSR_EE
);
__mtmsrd
(
msr
&
~
MSR_EE
,
1
);
__asm__
__volatile__
(
""
:
:
:
"memory"
);
}
...
...
include/asm-ppc64/processor.h
View file @
5595d5bb
...
...
@@ -579,7 +579,9 @@ GLUE(GLUE(.LT,NAME),_procname_end):
#define mfmsr() ({unsigned long rval; \
asm volatile("mfmsr %0" : "=r" (rval)); rval;})
#define mtmsrd(v) asm volatile("mtmsrd %0" : : "r" (v))
#define __mtmsrd(v, l) asm volatile("mtmsrd %0," __stringify(l) \
: : "r" (v))
#define mtmsrd(v) __mtmsrd((v), 0)
#define mfspr(rn) ({unsigned long rval; \
asm volatile("mfspr %0," __stringify(rn) \
...
...
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