diff options
author | Michal Simek <monstr@monstr.eu> | 2007-05-07 17:11:09 +0200 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2007-05-07 17:11:09 +0200 |
commit | 48fbd3a4cdabbebc1debd7eed73c00c2caf914f6 (patch) | |
tree | 63ba621165566abb6fb48e0fb472c6b4f8183025 /include/asm-microblaze | |
parent | ffc50f9bb194343c6303517a517708457a5eb6b8 (diff) | |
download | u-boot-imx-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.zip u-boot-imx-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.tar.gz u-boot-imx-48fbd3a4cdabbebc1debd7eed73c00c2caf914f6.tar.bz2 |
new: add writing to msr register
Diffstat (limited to 'include/asm-microblaze')
-rw-r--r-- | include/asm-microblaze/asm.h | 12 |
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)); |