Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116113
b: refs/heads/master
c: b21a910
h: refs/heads/master
i:
  116111: b30b061
v: v3
  • Loading branch information
roel kluin authored and Paul Mundt committed Sep 10, 2008
1 parent 69e4060 commit 33ff3e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6eb2139b3dc3e1c5181a7cdf83a517c57c34bb12
refs/heads/master: b21a91043592434e2847c4b552be7b51851d92c3
10 changes: 6 additions & 4 deletions trunk/arch/sh/kernel/cpu/irq/intc.c
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,10 @@ static unsigned int __init intc_prio_data(struct intc_desc *desc,
}

fn += (pr->reg_width >> 3) - 1;
bit = pr->reg_width - ((j + 1) * pr->field_width);

BUG_ON(bit < 0);
BUG_ON((j + 1) * pr->field_width > pr->reg_width);

bit = pr->reg_width - ((j + 1) * pr->field_width);

return _INTC_MK(fn, mode,
intc_get_reg(d, reg_e),
Expand Down Expand Up @@ -531,9 +532,10 @@ static unsigned int __init intc_sense_data(struct intc_desc *desc,

fn = REG_FN_MODIFY_BASE;
fn += (sr->reg_width >> 3) - 1;
bit = sr->reg_width - ((j + 1) * sr->field_width);

BUG_ON(bit < 0);
BUG_ON((j + 1) * sr->field_width > sr->reg_width);

bit = sr->reg_width - ((j + 1) * sr->field_width);

return _INTC_MK(fn, 0, intc_get_reg(d, sr->reg),
0, sr->field_width, bit);
Expand Down

0 comments on commit 33ff3e0

Please sign in to comment.