Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127056
b: refs/heads/master
c: 4c5b8a6
h: refs/heads/master
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Nov 18, 2008
1 parent f3cdbda commit dd3db1c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: ff4c02e4be00dccfb4b7baa8e56300b6ab3e290a
refs/heads/master: 4c5b8a648ff0e6bda853cc4094cb7e962ebd8d1d
2 changes: 0 additions & 2 deletions trunk/arch/blackfin/include/asm/cplbinit.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ extern void bfin_dcache_init(struct cplb_entry *icplb_tbl);
#define I_CPLB 0x4
#define D_CPLB 0x8

#define IN_KERNEL 1

#define ASYNC_MEMORY_CPLB_COVERAGE ((ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \
ASYNC_BANK2_SIZE + ASYNC_BANK3_SIZE) / SIZE_4M)

Expand Down
8 changes: 4 additions & 4 deletions trunk/arch/blackfin/kernel/cplb-nompu/cplbinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,13 +160,13 @@ static struct cplb_desc cplb_data[] = {
},
};

static u16 __init lock_kernel_check(u32 start, u32 end)
static bool __init lock_kernel_check(u32 start, u32 end)
{
if (start >= (u32)_end || end <= (u32)_stext)
return 0;
return false;

/* This cplb block overlapped with kernel area. */
return IN_KERNEL;
return true;
}

static unsigned short __init
Expand Down Expand Up @@ -198,7 +198,7 @@ fill_cplbtab(struct cplb_tab *table,

table->tab[table->pos++] = start;

if (lock_kernel_check(start, start + block_size) == IN_KERNEL)
if (lock_kernel_check(start, start + block_size))
table->tab[table->pos++] =
cplb_data | CPLB_LOCK | CPLB_DIRTY;
else
Expand Down

0 comments on commit dd3db1c

Please sign in to comment.