mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
MIPS: XPA: Allow use of $0 (zero) to MTHC0
Tweak __writex_32bit_c0_register() to allow the compiler to use $0 (the zero register) as an input to the mthc0 instruction. Signed-off-by: James Hogan <[email protected]> Cc: Ralf Baechle <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/17774/
This commit is contained in:
parent
8e4789d288
commit
3478ba9969
1 changed files with 2 additions and 2 deletions
|
|
@ -1537,10 +1537,10 @@ do { \
|
|||
" .set push \n" \
|
||||
" .set mips32r2 \n" \
|
||||
_ASM_SET_XPA \
|
||||
" mthc0 %0, $%1 \n" \
|
||||
" mthc0 %z0, $%1 \n" \
|
||||
" .set pop \n" \
|
||||
: \
|
||||
: "r" (value), "i" (register)); \
|
||||
: "Jr" (value), "i" (register)); \
|
||||
} while (0)
|
||||
|
||||
#define read_c0_index() __read_32bit_c0_register($0, 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue