Skip to contentSkip to conversation

POWERPC: Add _nmask_and_or_msr() declartion to asm-powerpc/system.h

PATCH Applied Jon Loeliger 2 participants 2 messages Jan 23, 2008 – Jan 24, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/4 POWERPC: Add _nmask_and_or_msr() declartion to asm-powerpc/system.h

Prevents miscellaneous users from declaring it locally.

---
 arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c |    2 --
 include/asm-powerpc/system.h                      |    2 ++
 2 files changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/platforms/embedded6xx/mpc7448_hpc2.c +0 -2
index a2c04b9..d4f8bf5 100644
@@ -53,8 +53,6 @@
 
 #define MPC7448HPC2_PCI_CFG_PHYS 0xfb000000
 
-extern void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
-
 int mpc7448_hpc2_exclude_device(struct pci_controller *hose,
 				u_char bus, u_char devfn)
 {
include/asm-powerpc/system.h +2 -0
index 87be8c3..bc9739d 100644
@@ -169,6 +169,8 @@ extern int do_page_fault(struct pt_regs *, unsigned long, unsigned long);
 extern void bad_page_fault(struct pt_regs *, unsigned long, int);
 extern int die(const char *, struct pt_regs *, long);
 extern void _exception(int, struct pt_regs *, int, unsigned long);
+extern void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);
+
 #ifdef CONFIG_BOOKE_WDT
 extern u32 booke_wdt_enabled;
 extern u32 booke_wdt_period;
Signature · 1 line
1.5.4.rc0
#1 lore raw
Quoted 1 line · Jon Loeliger

+extern void _nmask_and_or_msr(unsigned long nmask, unsigned long or_val);

Hmmm, I wish someone would think of a better name for it. In fact I have tended to avoid using it, and instead done things like

	mtmsr((mfmsr() & ~x) | y);

where necessary instead.

Paul.