提交 0118c3ca 编写于 作者: R Ralf Baechle

[MIPS] Malta: Fix build for non-MIPS32/64 configuration.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 12a0a703
...@@ -212,23 +212,23 @@ static inline unsigned int irq_ffs(unsigned int pending) ...@@ -212,23 +212,23 @@ static inline unsigned int irq_ffs(unsigned int pending)
unsigned int a0 = 7; unsigned int a0 = 7;
unsigned int t0; unsigned int t0;
t0 = s0 & 0xf000; t0 = pending & 0xf000;
t0 = t0 < 1; t0 = t0 < 1;
t0 = t0 << 2; t0 = t0 << 2;
a0 = a0 - t0; a0 = a0 - t0;
s0 = s0 << t0; pending = pending << t0;
t0 = s0 & 0xc000; t0 = pending & 0xc000;
t0 = t0 < 1; t0 = t0 < 1;
t0 = t0 << 1; t0 = t0 << 1;
a0 = a0 - t0; a0 = a0 - t0;
s0 = s0 << t0; pending = pending << t0;
t0 = s0 & 0x8000; t0 = pending & 0x8000;
t0 = t0 < 1; t0 = t0 < 1;
//t0 = t0 << 2; //t0 = t0 << 2;
a0 = a0 - t0; a0 = a0 - t0;
//s0 = s0 << t0; //pending = pending << t0;
return a0; return a0;
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册