Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113739
b: refs/heads/master
c: 5d2e321
h: refs/heads/master
i:
  113737: a6789e2
  113735: fc6bca5
v: v3
  • Loading branch information
Bernd Schmidt authored and Bryan Wu committed Oct 7, 2008
1 parent acf8bf7 commit b1c393c
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 0c7a6b2135c1bcb5139ca9ca87f292caafcb9410
refs/heads/master: 5d2e321306f82550e6d354b3210a18b86bdb13c1
14 changes: 12 additions & 2 deletions trunk/arch/blackfin/kernel/cplb-mpu/cplbmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,11 @@ int cplb_hdr(int seqstat, struct pt_regs *regs)
void flush_switched_cplbs(void)
{
int i;
unsigned long flags;

nr_cplb_flush++;

local_irq_save(flags);
disable_icplb();
for (i = first_switched_icplb; i < MAX_CPLBS; i++) {
icplb_tbl[i].data = 0;
Expand All @@ -338,17 +340,24 @@ void flush_switched_cplbs(void)
bfin_write32(DCPLB_DATA0 + i * 4, 0);
}
enable_dcplb();
local_irq_restore(flags);

}

void set_mask_dcplbs(unsigned long *masks)
{
int i;
unsigned long addr = (unsigned long)masks;
unsigned long d_data;
current_rwx_mask = masks;
unsigned long flags;

if (!masks)
if (!masks) {
current_rwx_mask = masks;
return;
}

local_irq_save(flags);
current_rwx_mask = masks;

d_data = CPLB_SUPV_WR | CPLB_VALID | CPLB_DIRTY | PAGE_SIZE_4KB;
#ifdef CONFIG_BFIN_DCACHE
Expand All @@ -367,4 +376,5 @@ void set_mask_dcplbs(unsigned long *masks)
addr += PAGE_SIZE;
}
enable_dcplb();
local_irq_restore(flags);
}

0 comments on commit b1c393c

Please sign in to comment.