Skip to content

Commit

Permalink
[MIPS] Malta: Fix build for non-MIPS32/64 configuration.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Oct 9, 2006
1 parent 12a0a70 commit 0118c3c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/mips/mips-boards/malta/malta_int.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0118c3c

Please sign in to comment.