[PATCH] add machine state register support
Geoff Levand
geoffrey.levand at am.sony.com
Tue May 24 09:40:55 EST 2005
This patch adds routines to get and set the machine state register. These
are needed by power management code on some platforms.
Signed-off-by: Geoff Levand <geoffrey.levand at am.sony.com> for CELF
--
Index:linux-2.6.11/arch/ppc/kernel/misc.S
===================================================================
--- linux-2.6.11.orig/arch/ppc/kernel/misc.S 2005-04-15 14:59:12.408518820 -0700
+++ linux-2.6.11/arch/ppc/kernel/misc.S 2005-04-15 14:59:34.005586781 -0700
@@ -1160,6 +1159,14 @@
addi r1,r1,16
blr
+_GLOBAL(_get_msr)
+ mfmsr r3
+ blr
+
+_GLOBAL(_set_msr)
+ mtmsr r3
+ blr
+
/*
* This routine is just here to keep GCC happy - sigh...
*/
More information about the Linuxppc-dev
mailing list