Skip to content

Commit

Permalink
MIPS: MT: define write_c0_tchalt macro
Browse files Browse the repository at this point in the history
Define a macro to write to the current TCs TCHalt register. This will be
used by a subsequent patch.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
  • Loading branch information
Paul Burton committed May 28, 2014
1 parent e2a9e5a commit 27476f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/include/asm/mipsmtregs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@

#define read_c0_tcbind() __read_32bit_c0_register($2, 2)

#define write_c0_tchalt(val) __write_32bit_c0_register($2, 4, val)

#define read_c0_tccontext() __read_32bit_c0_register($2, 5)
#define write_c0_tccontext(val) __write_32bit_c0_register($2, 5, val)

Expand Down

0 comments on commit 27476f3

Please sign in to comment.