Commit f02e6c61 authored by Helge Deller's avatar Helge Deller

parisc: Don't hardcode PSW values in hpmc code

Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent 3f4fb108
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#include <asm/assembly.h> #include <asm/assembly.h>
#include <asm/pdc.h> #include <asm/pdc.h>
#include <asm/psw.h>
#include <linux/linkage.h> #include <linux/linkage.h>
#include <linux/init.h> #include <linux/init.h>
...@@ -135,7 +136,7 @@ ENTRY_CFI(os_hpmc) ...@@ -135,7 +136,7 @@ ENTRY_CFI(os_hpmc)
* So turn on the Q bit and turn off the M bit. * So turn on the Q bit and turn off the M bit.
*/ */
ldo 8(%r0),%r4 /* PSW Q on, PSW M off */ ldi PSW_SM_Q,%r4 /* PSW Q on, PSW M off */
mtctl %r4,ipsw mtctl %r4,ipsw
mtctl %r0,pcsq mtctl %r0,pcsq
mtctl %r0,pcsq mtctl %r0,pcsq
...@@ -257,7 +258,7 @@ os_hpmc_5: ...@@ -257,7 +258,7 @@ os_hpmc_5:
tovirt_r1 %r30 /* make sp virtual */ 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 */ ldi 1,%r8 /* Set trap code to "1" for HPMC */
load32 PA(intr_save),%r1 load32 PA(intr_save),%r1
be 0(%sr7,%r1) be 0(%sr7,%r1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment