projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96173a6
)
[MIPS] Add accessors for random register.
author
Ralf Baechle
<ralf@linux-mips.org>
Mon, 26 May 2008 08:35:47 +0000
(09:35 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 5 Jun 2008 17:13:15 +0000
(18:13 +0100)
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
include/asm-mips/mipsregs.h
patch
|
blob
|
blame
|
history
diff --git
a/include/asm-mips/mipsregs.h
b/include/asm-mips/mipsregs.h
index aa17f658f73c9d164036fb838554f6e8ec1dc572..a46f8e258e6bdfbeb9921998f4d8c4022844b81a 100644
(file)
--- a/
include/asm-mips/mipsregs.h
+++ b/
include/asm-mips/mipsregs.h
@@
-765,6
+765,9
@@
do { \
#define read_c0_index() __read_32bit_c0_register($0, 0)
#define write_c0_index(val) __write_32bit_c0_register($0, 0, val)
+#define read_c0_random() __read_32bit_c0_register($1, 0)
+#define write_c0_random(val) __write_32bit_c0_register($1, 0, val)
+
#define read_c0_entrylo0() __read_ulong_c0_register($2, 0)
#define write_c0_entrylo0(val) __write_ulong_c0_register($2, 0, val)