Skip to contentSkip to conversation

powerpc: Add MSR[CE, DE] to the MSR bits we print on show_regs()

PATCH In review Kumar Gala 2 participants 3 messages Nov 19, 2008 – Nov 20, 2008 PowerPC

lore
Share & tools
lore

Kumar Gala

author
#0 lore raw

PATCH 1/1 powerpc: Add MSR[CE, DE] to the MSR bits we print on show_regs()

---
 arch/powerpc/kernel/process.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/kernel/process.c +2 -0
index 957bded..b038323 100644
@@ -467,6 +467,8 @@ static struct regbit {
 	{MSR_VEC,	"VEC"},
 	{MSR_VSX,	"VSX"},
 	{MSR_ME,	"ME"},
+	{MSR_CE,	"CE"},
+	{MSR_DE,	"DE"},
 	{MSR_IR,	"IR"},
 	{MSR_DR,	"DR"},
 	{0,		NULL}
Signature · 1 line
1.5.6.5
#1 lore raw
Quoted 2 lines · Kumar Gala

---

Shouldn't this be protected by some ifdef ?

Ben.

Quoted 16 lines
 arch/powerpc/kernel/process.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/powerpc/kernel/process.c +2 -0
index 957bded..b038323 100644
@@ -467,6 +467,8 @@ static struct regbit {
 	{MSR_VEC,	"VEC"},
 	{MSR_VSX,	"VSX"},
 	{MSR_ME,	"ME"},
+	{MSR_CE,	"CE"},
+	{MSR_DE,	"DE"},
 	{MSR_IR,	"IR"},
 	{MSR_DR,	"DR"},
 	{0,		NULL}
author
#2 lore raw
Quoted 11 lines · Benjamin Herrenschmidt
Quoted 2 lines · Kumar Gala

---

Shouldn't this be protected by some ifdef ?

Ben.

Quoted 3 lines

arch/powerpc/kernel/process.c | 2 ++

1 files changed, 2 insertions(+), 0 deletions(-)
Quoted 13 lines

arch/powerpc/kernel/process.c static struct regbit { · line 474

Quoted 13 lines
arch/powerpc/kernel/process.c +2 -0
index 957bded..b038323 100644
@@ -467,6 +467,8 @@ static struct regbit {
 	{MSR_VEC,	"VEC"},
 	{MSR_VSX,	"VSX"},
 	{MSR_ME,	"ME"},
+	{MSR_CE,	"CE"},
+	{MSR_DE,	"DE"},
 	{MSR_IR,	"IR"},
 	{MSR_DR,	"DR"},
 	{0,		NULL}

Why? The bits are always defined and don't seem to be reused (and we don't ifdef VEC, VSX, etc..) so why bother?

- k