Re: temp. mem mappings

Stephen C. Tweedie
2001-06-05T18:59:38Z

Hi,

On Tue, Jun 05, 2001 at 01:51:37PM -0500, Timur Tabi wrote:

> > > Allocate a virtual memory area using vmalloc and then save and modify the
> > > pmd/pgd/pte to point to the physical memory you want. To unmap, just undo the
> > > previous steps.
> >
> > ioremap() is there for exactly that purpose.
>
> True, except that you can't use ioremap on normal memory, which is what I
> assumed he was trying to do.

Normal memory is identity-mapped very early in boot anyway (except for
highmem on large Intel boxes, that is, and kmap() works for that.)

--Stephen