On Thursday 06 May 2004 16:06, Nachum Kanovsky wrote: > I have been searching around for a while on the internet, and I haven't > found any good explanation on where bigphysarea went in debian's 2.6 > kernels, and what I can use as an alternative. > > Can anyone tell me how to go about allocating large physical memory for use > by dma and usermode programs. I used to use bigphysarea_alloc, > mem_map_reserve - and then for mapping I would set the vma to VM_LOCKED and > I would call remap_page_range. > > What do I do with kernel 2.6 for this?
I'm might be smoking crack here, but I seem to remember that bigphysarea was an outside patch and not part of Linus vanilla kernel. Not sure about it though. BTW, one extremly ugly trick you can do without this patch is to use the kernel boot parameter "mem=" to create a "hole" in the memory map that is managed by the kernel (same thing that happens for video card "stolen" memroy, really) and simply mem_map_reserve and remap_page_range it. But I wouldn't recomend going this way for anything which is not an embedded system that you have absolute control over and even then it's ugly. Cheers, Gilad -- Gilad Ben-Yossef <[EMAIL PROTECTED]> Codefidence. A name you can trust (tm) http://www.codefidence.com "I am Jack's Overwritten Stack Pointer" -- Hackers Club, the movie ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
