Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127061
b: refs/heads/master
c: dce783c
h: refs/heads/master
i:
  127059: 84e07a2
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Nov 18, 2008
1 parent 7f37856 commit e0a5987
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 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: 8624991187c365779f101b926662950794a6bfbe
refs/heads/master: dce783c5e400d6a470c86ccb5a7fdeabf27afbf4
11 changes: 10 additions & 1 deletion trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,17 @@ void __init generate_cplb_tables_cpu(unsigned int cpu)
}
}

/* close tables */
/* make sure we locked the kernel start */
BUG_ON(cplb.init_i.pos < 2 + cplb_data[ZERO_P].valid);
BUG_ON(cplb.init_d.pos < 1 + cplb_data[ZERO_P].valid + cplb_data[L1D_MEM].valid);

/* make sure we didnt overflow the table */
BUG_ON(cplb.init_i.size <= cplb.init_i.pos);
BUG_ON(cplb.init_d.size <= cplb.init_d.pos);
BUG_ON(cplb.switch_i.size <= cplb.switch_i.pos);
BUG_ON(cplb.switch_d.size <= cplb.switch_d.pos);

/* close tables */
close_cplbtab(&cplb.init_i);
close_cplbtab(&cplb.init_d);

Expand Down

0 comments on commit e0a5987

Please sign in to comment.