I grepped all the linux tree for "HAVE_ARCH_FB_UNMAPPED_AREA". arch/sparc/include/asm/pgtable_64.h:#define HAVE_ARCH_FB_UNMAPPED_AREA arch/blackfin/include/asm/pgtable.h:#define HAVE_ARCH_FB_UNMAPPED_AREA drivers/video/fbmem.c:#ifdef HAVE_ARCH_FB_UNMAPPED_AREA
Seems that for my case (m68k-nommu) it is not defined, so none of the get_unmapped_area will be called, in any place. Bu in fbmem.c there is a "fb_mmap" that's probably called. I will try to set correctly as you said fix.smem_start and .smem_len and let you know. Thanks Angelo On 12/12/2012 23:21, Gavin Lambert wrote: > Quoth angelo: >> thanks, well, i implemented the handler: >> >> static int amcorefb_mmap(struct fb_info *info, struct vm_area_struct >> *vma) { > > No, that's not the right one. You don't need to implement that. > >> Seems i miss the "get_unmapped_area/BDI_CAP_MAP_DIRECT) capability. > > fbmem.c implements the main get_unmapped_area handler. In your framebuffer > driver you just need to either implement fb_get_unmapped_area or (easier, > but only works on nommu) set fix.smem_start and .smem_len correctly in your > fb_info. > > > _______________________________________________ > uClinux-dev mailing list > uClinux-dev@uclinux.org > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by uclinux-dev@uclinux.org > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev -- _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev