From: Ralf Baechle Date: Mon, 26 May 2008 08:35:47 +0000 (+0100) Subject: [MIPS] Add accessors for random register. X-Git-Tag: v2.6.26-rc6~97^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=272bace7f3753ea8bf6ee80e3a6b32fa64190744;p=linux-2.6 [MIPS] Add accessors for random register. Signed-off-by: Ralf Baechle --- diff --git a/include/asm-mips/mipsregs.h b/include/asm-mips/mipsregs.h index aa17f658f7..a46f8e258e 100644 --- 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)