Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xenomai
ipipe-x86
Commits
f02e6c61
Commit
f02e6c61
authored
Jun 08, 2017
by
Helge Deller
Browse files
parisc: Don't hardcode PSW values in hpmc code
Signed-off-by:
Helge Deller
<
deller@gmx.de
>
parent
3f4fb108
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/parisc/kernel/hpmc.S
View file @
f02e6c61
...
...
@@ -44,6 +44,7 @@
#include <asm/assembly.h>
#include <asm/pdc.h>
#include <asm/psw.h>
#include <linux/linkage.h>
#include <linux/init.h>
...
...
@@ -135,7 +136,7 @@ ENTRY_CFI(os_hpmc)
*
So
turn
on
the
Q
bit
and
turn
off
the
M
bit
.
*/
ld
o
8
(%
r0
),%
r4
/*
PSW
Q
on
,
PSW
M
off
*/
ld
i
PSW_SM_Q
,%
r4
/*
PSW
Q
on
,
PSW
M
off
*/
mtctl
%
r4
,
ipsw
mtctl
%
r0
,
pcsq
mtctl
%
r0
,
pcsq
...
...
@@ -257,7 +258,7 @@ os_hpmc_5:
tovirt_r1
%
r30
/*
make
sp
virtual
*/
rsm
8
,%
r0
/*
Clear
Q
bit
*/
rsm
PSW_SM_Q
,%
r0
/*
Clear
Q
bit
*/
ldi
1
,%
r8
/*
Set
trap
code
to
"1"
for
HPMC
*/
load32
PA
(
intr_save
),%
r1
be
0
(%
sr7
,%
r1
)
...
...
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