Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92314
b: refs/heads/master
c: 4e354b5
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Apr 23, 2008
1 parent ac4d664 commit e10b3f1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 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: 7795566495ff90c541a4654d3c903ab277abadfd
refs/heads/master: 4e354b54991fd7d589c8e5753eea58a1afcae30a
8 changes: 0 additions & 8 deletions trunk/arch/blackfin/kernel/cplb-mpu/cplbinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,6 @@
#include <asm/cplbinit.h>
#include <asm/blackfin.h>

#define CPLB_I 1
#define CPLB_D 2

#define SYNC_SYS SSYNC()
#define SYNC_CORE CSYNC()

#define CPLB_BIT_PAGESIZE 0x30000

static char page_size_string_table[][4] = { "1K", "4K", "1M", "4M" };

static char *cplb_print_entry(char *buf, struct cplb_entry *tbl, int switched)
Expand Down
6 changes: 5 additions & 1 deletion trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,11 @@ static noinline int dcplb_miss(void)
addr &= ~0x3fffff;
d_data &= ~PAGE_SIZE_4KB;
d_data |= PAGE_SIZE_4MB;
} else if (addr >= BOOT_ROM_START && addr < BOOT_ROM_START + BOOT_ROM_LENGTH
&& (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;
} else
return CPLB_PROT_VIOL;
} else if (addr >= _ramend) {
Expand Down Expand Up @@ -277,7 +282,6 @@ static noinline int icplb_miss(void)

static noinline int dcplb_protection_fault(void)
{
unsigned long addr = bfin_read_DCPLB_FAULT_ADDR();
int status = bfin_read_DCPLB_STATUS();

nr_dcplb_prot++;
Expand Down

0 comments on commit e10b3f1

Please sign in to comment.