[PATCH] add machine state register support
Geert Uytterhoeven
geert at linux-m68k.org
Wed May 25 03:05:36 EST 2005
On Mon, 23 May 2005, Geoff Levand wrote:
> 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
> +
Please check m[ft]msr() in <asm/reg.h>.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
More information about the Linuxppc-dev
mailing list