Re: [PATCH] enable _PAGE_GLOBAL for module memory and vmalloc()

Alan Cox (kernel@kvack.org)
Mon, 27 Sep 1999 11:15:53 -0400 (EDT)


On Mon, 27 Sep 1999, Manfred Spraul wrote:

> This patch enables _PAGE_GLOBAL for module memory and vmalloc().
>
> The patch is tested and stable on a dual Pentium II.
> Could you test it on other CPU's?
> The patch has no effect on Pentium and AMD-K6 CPU's.

There's a small typo in the patch:

- if (boot_cpu_data.x86_capability & X86_FEATURE_PGE)
- pgprot_val(prot) |= _PAGE_GLOBAL;

...

+ if (boot_cpu_data.x86_capability & X86_FEATURE_PSE) {
+ pgkern_mask |= _PAGE_GLOBAL;
+ }

Shouldn't PSE rather be PGE? =)

-ben

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