Re: [PATCH] MIPS: fix tc_id calculation

2012-07-28 Thread Hillf Danton
On Sat, Jul 28, 2012 at 5:08 PM, RongQing Li wrote: > Any advice > > 2012/7/2 : >> From: RongQing.Li >> >> Now the tc_id is: >> (read_c0_tcbind() >> TCBIND_CURTC_SHIFT) & TCBIND_CURTC; >> After substitute macro: >> (read_c0_tcbind() >> 21) & ((0xff) << 21) >> It should be: >>

Re: [PATCH] MIPS: fix tc_id calculation

2012-07-28 Thread RongQing Li
Any advice 2012/7/2 : > From: RongQing.Li > > Now the tc_id is: > (read_c0_tcbind() >> TCBIND_CURTC_SHIFT) & TCBIND_CURTC; > After substitute macro: > (read_c0_tcbind() >> 21) & ((0xff) << 21) > It should be: > (read_c0_tcbind() & ((0xff)<< 21)) >>21 > > Signed-off-by: RongQing.Li > ---

Re: [PATCH] MIPS: fix tc_id calculation

2012-07-28 Thread RongQing Li
Any advice 2012/7/2 roy.qing...@gmail.com: From: RongQing.Li roy.qing...@gmail.com Now the tc_id is: (read_c0_tcbind() TCBIND_CURTC_SHIFT) TCBIND_CURTC; After substitute macro: (read_c0_tcbind() 21) ((0xff) 21) It should be: (read_c0_tcbind() ((0xff) 21)) 21 Signed-off-by:

Re: [PATCH] MIPS: fix tc_id calculation

2012-07-28 Thread Hillf Danton
On Sat, Jul 28, 2012 at 5:08 PM, RongQing Li roy.qing...@gmail.com wrote: Any advice 2012/7/2 roy.qing...@gmail.com: From: RongQing.Li roy.qing...@gmail.com Now the tc_id is: (read_c0_tcbind() TCBIND_CURTC_SHIFT) TCBIND_CURTC; After substitute macro: (read_c0_tcbind() 21) ((0xff)