mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[MIPS] Malta: Fix build for non-MIPS32/64 configuration.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
12a0a703b3
commit
0118c3ca9e
1 changed files with 6 additions and 6 deletions
|
@ -212,23 +212,23 @@ static inline unsigned int irq_ffs(unsigned int pending)
|
|||
unsigned int a0 = 7;
|
||||
unsigned int t0;
|
||||
|
||||
t0 = s0 & 0xf000;
|
||||
t0 = pending & 0xf000;
|
||||
t0 = t0 < 1;
|
||||
t0 = t0 << 2;
|
||||
a0 = a0 - t0;
|
||||
s0 = s0 << t0;
|
||||
pending = pending << t0;
|
||||
|
||||
t0 = s0 & 0xc000;
|
||||
t0 = pending & 0xc000;
|
||||
t0 = t0 < 1;
|
||||
t0 = t0 << 1;
|
||||
a0 = a0 - t0;
|
||||
s0 = s0 << t0;
|
||||
pending = pending << t0;
|
||||
|
||||
t0 = s0 & 0x8000;
|
||||
t0 = pending & 0x8000;
|
||||
t0 = t0 < 1;
|
||||
//t0 = t0 << 2;
|
||||
a0 = a0 - t0;
|
||||
//s0 = s0 << t0;
|
||||
//pending = pending << t0;
|
||||
|
||||
return a0;
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue