* [PATCH] powerpc: Add MSR_DE to MSR_KERNEL
@ 2012-06-04 9:04 Joakim Tjernlund
0 siblings, 0 replies; only message in thread
From: Joakim Tjernlund @ 2012-06-04 9:04 UTC (permalink / raw)
To: linuxppc-dev
Emulators such as BDI2000 and CodeWarrior needs to have MSR_DE set
in order to support break points for booke archs.
This adds MSR_DE for kernel space only, protected by CONFIG_BDI_SWITCH
Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
---
arch/powerpc/include/asm/reg_booke.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/reg_booke.h b/arch/powerpc/include/asm/reg_booke.h
index 500fe1d..b3e57ed 100644
--- a/arch/powerpc/include/asm/reg_booke.h
+++ b/arch/powerpc/include/asm/reg_booke.h
@@ -37,7 +37,11 @@
#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_IR|MSR_DR|MSR_CE)
#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
#else
+#ifdef CONFIG_BDI_SWITCH
+#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_CE|MSR_DE)
+#else
#define MSR_KERNEL (MSR_ME|MSR_RI|MSR_CE)
+#endif
#define MSR_USER (MSR_KERNEL|MSR_PR|MSR_EE)
#endif
--
1.7.3.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-04 9:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-04 9:04 [PATCH] powerpc: Add MSR_DE to MSR_KERNEL Joakim Tjernlund
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).