aboutsummaryrefslogtreecommitdiff
path: root/include/asm-microblaze
diff options
context:
space:
mode:
authorMichal Simek2007-05-07 17:11:09 +0200
committerMichal Simek2007-05-07 17:11:09 +0200
commit48fbd3a4cdabbebc1debd7eed73c00c2caf914f6 (patch)
tree63ba621165566abb6fb48e0fb472c6b4f8183025 /include/asm-microblaze
parentffc50f9bb194343c6303517a517708457a5eb6b8 (diff)
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 67475725e27..fcda31f4a89 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));