Newbie: allocating aligned physically-contiguous memory?
- From: Neil Steiner <neil.steiner@xxxxxx>
- Date: Thu, 12 Jul 2007 14:16:31 -0400
My apologies for the dumb Linux question; I usually live in the comp.arch.fpga world.
I'm using a custom architecture (2.4.26 kernel on PPC 405 inside an XC2VP30 FPGA) that can work with a framebuffer aligned on any multiple of 0x00200000.
Here's what I need to do:
1. Allocate block of 0x00200000 physically contiguous bytes from memory.
2. Guarantee the block is aligned on a physical 0x00200000 boundary.
3. Make the block visible from user space, if possible.
It would be nice to just kmalloc(0x00200000,GFP_USER), but that wouldn't give me any way to enforce the physical alignment requirement. I'm sure someone here has done this kind of thing a million times. Any ideas? Anything I should be reading up on?
.
- Follow-Ups:
- Re: Newbie: allocating aligned physically-contiguous memory?
- From: Jens Thoms Toerring
- Re: Newbie: allocating aligned physically-contiguous memory?
- Prev by Date: Re: About Parallelism
- Next by Date: Re: Newbie: allocating aligned physically-contiguous memory?
- Previous by thread: About Parallelism
- Next by thread: Re: Newbie: allocating aligned physically-contiguous memory?
- Index(es):
Relevant Pages
|