Skip to content
Commit 2bd40827 authored by RongQing.Li's avatar RongQing.Li Committed by Ralf Baechle
Browse files

MIPS: CMP/SMTC: Fix tc_id calculation



Currently the tc_id code is:

  (read_c0_tcbind() >> TCBIND_CURTC_SHIFT) & TCBIND_CURTC;

After processing this becomes:

  (read_c0_tcbind() >> 21) & ((0xff) << 21)

But it should be:

  (read_c0_tcbind() & ((0xff)<< 21)) >> 21

Signed-off-by: default avatarRongQing.Li <roy.qing.li@gmail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/4077/


Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent fea7a08a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment