From: <he...@ar...> - 2003-02-24 20:33:20
|
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 fun= ktion, find only in other FB drivers. So I will reading something about mem= ory function in kernel and give all my functions the correct Arguments. Thanks again! Henry >=20 > 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. >=20 > You can try this in xxxfb_encode_fix(): >=20 > fix->smem_start =3D virt_to_phys(info.vmemory) >=20 > 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. >=20 > Tony >=20 ---------------------------------------------------------------------------= - Nehmen Sie sich Zeit f=FCr das Kuschelwochenende! Bei Arcor-Video on Demand gibt es w=E4hrend 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 ----------------------------------------------------------------------- |