Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 167195
b: refs/heads/master
c: 59bd00c
h: refs/heads/master
i:
  167193: eeb5a98
  167191: fd40a5a
v: v3
  • Loading branch information
Thomas Chou authored and Mike Frysinger committed Oct 8, 2009
1 parent 12af43a commit 6ef55dd
Show file tree
Hide file tree
Showing 3 changed files with 18 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: 4a7bcb4fe96824f882d126dc39df9ba658a29372
refs/heads/master: 59bd00c85012af2b59ba8c1b47caaf10ccbfa3b1
6 changes: 6 additions & 0 deletions trunk/arch/blackfin/include/asm/pgtable.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,12 @@ extern unsigned int kobjsize(const void *objp);
#define VMALLOC_START 0
#define VMALLOC_END 0xffffffff

/* provide a special get_unmapped_area for framebuffer mmaps of nommu */
extern unsigned long get_fb_unmapped_area(struct file *filp, unsigned long,
unsigned long, unsigned long,
unsigned long);
#define HAVE_ARCH_FB_UNMAPPED_AREA

#include <asm-generic/pgtable.h>

#endif /* _BLACKFIN_PGTABLE_H */
11 changes: 11 additions & 0 deletions trunk/arch/blackfin/kernel/sys_bfin.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,14 @@ asmlinkage void *sys_dma_memcpy(void *dest, const void *src, size_t len)
{
return safe_dma_memcpy(dest, src, len);
}

#if defined(CONFIG_FB) || defined(CONFIG_FB_MODULE)
#include <linux/fb.h>
unsigned long get_fb_unmapped_area(struct file *filp, unsigned long orig_addr,
unsigned long len, unsigned long pgoff, unsigned long flags)
{
struct fb_info *info = filp->private_data;
return (unsigned long)info->screen_base;
}
EXPORT_SYMBOL(get_fb_unmapped_area);
#endif

0 comments on commit 6ef55dd

Please sign in to comment.