Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92321
b: refs/heads/master
c: 4bea8b2
h: refs/heads/master
i:
  92319: 7352777
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Apr 23, 2008
1 parent 1cec91a commit 28e5ddd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 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: ac76d889b5e1f829f71a1527a00dc8048c2c2660
refs/heads/master: 4bea8b20fded93871c872bb4a0d7c23345318184
10 changes: 8 additions & 2 deletions trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static noinline int dcplb_miss(void)
&& (status & (FAULT_RW | FAULT_USERSUPV)) == FAULT_USERSUPV) {
addr &= ~(1 * 1024 * 1024 - 1);
d_data &= ~PAGE_SIZE_4KB;
d_data |= PAGE_SIZE_1MB | CPLB_USER_RD;
d_data |= PAGE_SIZE_1MB;
} else
return CPLB_PROT_VIOL;
} else if (addr >= _ramend) {
Expand Down Expand Up @@ -243,7 +243,13 @@ static noinline int icplb_miss(void)
#endif

if (addr >= physical_mem_end) {
return CPLB_PROT_VIOL;
if (addr >= BOOT_ROM_START && addr < BOOT_ROM_START + BOOT_ROM_LENGTH
&& (status & FAULT_USERSUPV)) {
addr &= ~(1 * 1024 * 1024 - 1);
i_data &= ~PAGE_SIZE_4KB;
i_data |= PAGE_SIZE_1MB;
} else
return CPLB_PROT_VIOL;
} else if (addr >= _ramend) {
i_data |= CPLB_USER_RD;
} else {
Expand Down

0 comments on commit 28e5ddd

Please sign in to comment.