David Frascone
2005-01-03 01:33:08 UTC
I need to allocate 2mb for a brain dead driver. The existing driver likes to get it's memory by using mem=<realmem = 2mb>, then ioremaping the top of physical memory to get raw access to it.
Basically, the area is for DMA / shared memory for a pci card.
So, I'm trying to remove the mem= dependency, and just allocate a large buffer to use with the driver. But, kmalloc doesn't like to give out chunks that size.
So, how do I malloc 2Mb of contiguous space?
-Dave
Basically, the area is for DMA / shared memory for a pci card.
So, I'm trying to remove the mem= dependency, and just allocate a large buffer to use with the driver. But, kmalloc doesn't like to give out chunks that size.
So, how do I malloc 2Mb of contiguous space?
-Dave
--
David Frascone
Oxymoron: Safe Sex.
David Frascone
Oxymoron: Safe Sex.