Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 113789
b: refs/heads/master
c: 58c35bd
h: refs/heads/master
i:
  113787: 4a5d3ce
v: v3
  • Loading branch information
Vitja Makarov authored and Bryan Wu committed Oct 13, 2008
1 parent 1e45500 commit df4d5ce
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3094c981f2d567f0a442687ced24a5340aa10b6c
refs/heads/master: 58c35bd31f8b577e03d904c214b55b3d91369a85
14 changes: 14 additions & 0 deletions trunk/arch/blackfin/include/asm/cplbinit.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,18 @@ extern unsigned long reserved_mem_icache_on;

extern void generate_cplb_tables(void);

static inline int bfin_addr_dcachable(unsigned long addr)
{
#ifdef CONFIG_BFIN_DCACHE
if (addr < (_ramend - DMA_UNCACHED_REGION))
return 1;
#endif

if (reserved_mem_dcache_on &&
addr >= _ramend && addr < physical_mem_end)
return 1;

return 0;
}

#endif
1 change: 1 addition & 0 deletions trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ EXPORT_SYMBOL(memory_start);
EXPORT_SYMBOL(memory_end);
EXPORT_SYMBOL(physical_mem_end);
EXPORT_SYMBOL(_ramend);
EXPORT_SYMBOL(reserved_mem_dcache_on);

#ifdef CONFIG_MTD_UCLINUX
unsigned long memory_mtd_end, memory_mtd_start, mtd_size;
Expand Down

0 comments on commit df4d5ce

Please sign in to comment.