projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
85xx: Round up frequency calculations to get reasonable output
[oweals/u-boot.git]
/
cpu
/
ppc4xx
/
tlb.c
diff --git
a/cpu/ppc4xx/tlb.c
b/cpu/ppc4xx/tlb.c
index 2bfcba19bdbaf500a1d92496b0382eb32c778020..f44822dbab0dcfddbf4b4ce5ac34e65fa47b8258 100644
(file)
--- a/
cpu/ppc4xx/tlb.c
+++ b/
cpu/ppc4xx/tlb.c
@@
-149,7
+149,9
@@
void change_tlb(u32 vaddr, u32 size, u32 tlb_word2_i_value)
/*
* Now check the end-address if it's in the range
*/
/*
* Now check the end-address if it's in the range
*/
- if ((tlb_vaddr + tlb_size - 1) <= (vaddr + size - 1)) {
+ if (((tlb_vaddr + tlb_size - 1) <= (vaddr + size - 1)) ||
+ ((tlb_vaddr < (vaddr + size - 1)) &&
+ ((tlb_vaddr + tlb_size - 1) > (vaddr + size - 1)))) {
/*
* Found a TLB in the range.
* Change cache attribute in tlb2 word.
/*
* Found a TLB in the range.
* Change cache attribute in tlb2 word.