]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MIPS: asm: mipsregs: Add support for the LLADDR register
authorMarkos Chandras <markos.chandras@imgtec.com>
Wed, 3 Dec 2014 12:31:42 +0000 (12:31 +0000)
committerMarkos Chandras <markos.chandras@imgtec.com>
Tue, 17 Feb 2015 15:37:36 +0000 (15:37 +0000)
If Config5/LLB is set in the core, then software can write the LLB
bit in the LLADDR register.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
arch/mips/include/asm/mipsregs.h

index 093cd70e56ec5dda170600d616a765c03158d1e9..06346001ee4d579628ea5e62ecf4044493987854 100644 (file)
@@ -1128,6 +1128,8 @@ do {                                                                      \
 #define write_c0_config6(val)  __write_32bit_c0_register($16, 6, val)
 #define write_c0_config7(val)  __write_32bit_c0_register($16, 7, val)
 
+#define read_c0_lladdr()       __read_ulong_c0_register($17, 0)
+#define write_c0_lladdr(val)   __write_ulong_c0_register($17, 0, val)
 #define read_c0_maar()         __read_ulong_c0_register($17, 1)
 #define write_c0_maar(val)     __write_ulong_c0_register($17, 1, val)
 #define read_c0_maari()                __read_32bit_c0_register($17, 2)