summaryrefslogtreecommitdiffstats
path: root/include/asm-microblaze/asm.h
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/asm.h
parentffc50f9bb194343c6303517a517708457a5eb6b8 (diff)
downloadbootable_bootloader_goldelico_gta04-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.zip
bootable_bootloader_goldelico_gta04-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.tar.gz
bootable_bootloader_goldelico_gta04-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.tar.bz2
new: add writing to msr register
Diffstat (limited to 'include/asm-microblaze/asm.h')
-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 6747572..fcda31f 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));