Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 189266
b: refs/heads/master
c: 60a729f
h: refs/heads/master
v: v3
  • Loading branch information
Michal Simek committed Apr 1, 2010
1 parent 9424a6a commit 9c5ccfb
Show file tree
Hide file tree
Showing 3 changed files with 7 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: 357bc3c9284b2fb201786176e8187d2273323bc1
refs/heads/master: 60a729f7bb936a9ab82b430de70a1952f560adf3
7 changes: 6 additions & 1 deletion trunk/arch/microblaze/include/asm/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,12 @@ struct exception_table_entry {

#ifndef CONFIG_MMU

extern int ___range_ok(unsigned long addr, unsigned long size);
/* Check against bounds of physical memory */
static inline int ___range_ok(unsigned long addr, unsigned long size)
{
return ((addr < memory_start) ||
((addr + size) > memory_end));
}

#define __range_ok(addr, size) \
___range_ok((unsigned long)(addr), (unsigned long)(size))
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/microblaze/mm/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,14 +207,6 @@ void __init mem_init(void)
}

#ifndef CONFIG_MMU
/* Check against bounds of physical memory */
int ___range_ok(unsigned long addr, unsigned long size)
{
return ((addr < memory_start) ||
((addr + size) > memory_end));
}
EXPORT_SYMBOL(___range_ok);

int page_is_ram(unsigned long pfn)
{
return __range_ok(pfn, 0);
Expand Down

0 comments on commit 9c5ccfb

Please sign in to comment.