| Newsgroups |
gmane.linux.fbdev.user |
| Message-ID |
<[email protected]> |
Hello Tony,
many, many thanks for your sugestions! __get_free_pages() and co works now.
The last added function was SetPageReserved(). I do not know about this funktion, find only in other FB drivers. So I will reading something about memory function in kernel and give all my functions the correct Arguments.
Thanks again!
Henry
>
> Yes, I saw that. What I meant was XFBDev (and most fb-based
> applications) requires that video memory is mappable to userspace,
> otherwise the driver will only work within the console. If you need to
> have these apps work, then you have to find a way to map the video
> memory. Also fix->smem_start requires a physical address, so you need
> the virt_to_phys() macro.
>
> You can try this in xxxfb_encode_fix():
>
> fix->smem_start = virt_to_phys(info.vmemory)
>
> If you're very lucky, vmalloc() might have given you a chunk of memory
> that is linear. Do not rely on vmalloc() though, try __get_free_pages()
> instead.
>
> Tony
>
----------------------------------------------------------------------------
Nehmen Sie sich Zeit für das Kuschelwochenende!
Bei Arcor-Video on Demand gibt es während des Kuschelwochenendes vom
29. November 12 Uhr bis zum 2. Dezember 12 Uhr 100 Spielfilme ab 99 Cent:
http://www.arcor.de/home/redir.php/email.kuscheln
-----------------------------------------------------------------------
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf