Re: Linux-2.5.16

Linus Torvalds (torvalds@transmeta.com)
Sun, 19 May 2002 18:20:03 -0700 (PDT)


On Mon, 20 May 2002, Roman Zippel wrote:
>
> There is another problem even on rather "normal" systems, a pgd/pmd
> directory doesn't have to be of PAGE_SIZE size, e.g. on m68k it's 512
> bytes.

Note that the generic VM code doesn't actually call any of these functions
directly - an architecture can choose to redefine the whole thing for its
own uses if it wants to.

In particular, even if the architecture wants to share everything else in
the generic tlb.h, you can solve the particular problem you mention by
just not defining "pmd_free_tlb()" to be "tlb_remove_page()". In short:
there should be absolutely nothing in the setup that _requires_ you to
consider page directories to be normal pages. It just happens to work out
that way on x86 (and a number of other architectures).

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/