diff options
author | Christophe Leroy <christophe.leroy@c-s.fr> | 2017-07-13 15:09:52 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-07-22 22:22:49 -0400 |
commit | f1cd73674ff19e62c69c942f23abb061c0a26072 (patch) | |
tree | 81123a9dc778db85f233dc23c69993eaffac9cde /arch/powerpc/lib/kgdb.c | |
parent | f0eda3cb89813c49d90fec7ee5fa69d3fe3d6daa (diff) | |
download | u-boot-f1cd73674ff19e62c69c942f23abb061c0a26072.tar.gz |
powerpc: move set_msr() and get_msr() into .h
set_msr() and get_msr() are defined and used twice.
This patch moves them into ppc.h
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Diffstat (limited to 'arch/powerpc/lib/kgdb.c')
-rw-r--r-- | arch/powerpc/lib/kgdb.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/powerpc/lib/kgdb.c b/arch/powerpc/lib/kgdb.c index 88c2af21eb..aa16a00a42 100644 --- a/arch/powerpc/lib/kgdb.c +++ b/arch/powerpc/lib/kgdb.c @@ -38,20 +38,6 @@ kgdb_longjmp(long *buf, int val) : "=&r"(temp) : "r" (buf), "r" (val)); } -static inline unsigned long -get_msr(void) -{ - unsigned long msr; - asm volatile("mfmsr %0" : "=r" (msr):); - return msr; -} - -static inline void -set_msr(unsigned long msr) -{ - asm volatile("mtmsr %0" : : "r" (msr)); -} - /* Convert the SPARC hardware trap type code to a unix signal number. */ /* * This table contains the mapping between PowerPC hardware trap types, and |