summaryrefslogtreecommitdiffstats
path: root/include/asm-microblaze
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2007-05-07 17:11:09 +0200
committerMichal Simek <monstr@monstr.eu>2007-05-07 17:11:09 +0200
commit48fbd3a4cdabbebc1debd7eed73c00c2caf914f6 (patch)
tree63ba621165566abb6fb48e0fb472c6b4f8183025 /include/asm-microblaze
parentffc50f9bb194343c6303517a517708457a5eb6b8 (diff)
downloadblackbird-obmc-uboot-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.tar.gz
blackbird-obmc-uboot-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.zip
new: add writing to msr register
Diffstat (limited to 'include/asm-microblaze')
-rw-r--r--include/asm-microblaze/asm.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/asm-microblaze/asm.h b/include/asm-microblaze/asm.h
index 67475725e2..fcda31f4a8 100644
--- a/include/asm-microblaze/asm.h
+++ b/include/asm-microblaze/asm.h
@@ -31,7 +31,13 @@
__asm__ __volatile__ ("nput %0, rfsl" #fslnum ::"r" (val));
#define PUT(val, fslnum) \
__asm__ __volatile__ ("put %0, rfsl" #fslnum ::"r" (val));
-
+
/* CPU dependent */
-#define RMSR(val) \
- __asm__ __volatile__ ("mfs %0,rmsr":"=r" (val));
+#define MFS(val) \
+ __asm__ __volatile__ ("mfs %0, rmsr":"=r" (val));
+
+#define MTS(val) \
+ __asm__ __volatile__ ("mts rmsr, %0"::"r" (val));
+
+#define R14(val) \
+ __asm__ __volatile__ ("addi %0, r14, 0":"=r" (val));
OpenPOWER on IntegriCloud