linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] add machine state register support
@ 2005-05-23 23:40 Geoff Levand
  2005-05-23 23:53 ` Benjamin Herrenschmidt
  2005-05-24 17:05 ` Geert Uytterhoeven
  0 siblings, 2 replies; 4+ messages in thread
From: Geoff Levand @ 2005-05-23 23:40 UTC (permalink / raw)
  To: benh; +Cc: linuxppc-dev

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@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...
  */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-05-24 18:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-23 23:40 [PATCH] add machine state register support Geoff Levand
2005-05-23 23:53 ` Benjamin Herrenschmidt
2005-05-24 17:39   ` Geoff Levand
2005-05-24 17:05 ` Geert Uytterhoeven

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).