On Sun, Apr 29, 2001 at 09:38:04PM +0200, Jamie Lokier wrote:
> Fwiw, modern x86 has global TLB entries too.
my x86-64 implementation is marking the tlb entry global of course (so
it's not flushed during context switch):
#define __PAGE_KERNEL_VSYSCALL \
(_PAGE_PRESENT | _PAGE_USER | _PAGE_ACCESSED)
#define MAKE_GLOBAL(x) __pgprot((x) | _PAGE_GLOBAL)
#define PAGE_KERNEL_VSYSCALL MAKE_GLOBAL(__PAGE_KERNEL_VSYSCALL)
static void __init map_vsyscall(void)
{
extern char __vsyscall_0;
unsigned long physaddr_page0 = (unsigned long) &__vsyscall_0 -
__START_KERNEL_map;
__set_fixmap(VSYSCALL_FIRST_PAGE, physaddr_page0, PAGE_KERNEL_VSYSCALL);
}
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: X15 alpha release: as fast as TUX but in use... Gregory Maxwell
- Re: X15 alpha release: as fast as TUX but in use... Richard Gooch
- Re: X15 alpha release: as fast as TUX but in use... Ingo Oeser
- Re: X15 alpha release: as fast as TUX but in use... Gregory Maxwell
- Re: X15 alpha release: as fast as TUX but in use... Richard Gooch
- Re: X15 alpha release: as fast as TUX but in use... Andrea Arcangeli
- Re: X15 alpha release: as fast as TUX but in use... Arjan van de Ven
- Re: X15 alpha release: as fast as TUX but in use... Richard Gooch
- Re: X15 alpha release: as fast as TUX but in use... Alan Cox
- Re: X15 alpha release: as fast as TUX but in user sp... Jamie Lokier
- Re: X15 alpha release: as fast as TUX but in use... Andrea Arcangeli
- Re: X15 alpha release: as fast as TUX but in user space (... dean gaudet
- Re: X15 alpha release: as fast as TUX but in user sp... H. Peter Anvin
- Re: X15 alpha release: as fast as TUX but in use... Richard Gooch
- Re: X15 alpha release: as fast as TUX but in user sp... Jim Gettys
- Re: X15 alpha release: as fast as TUX but in use... H. Peter Anvin
- Re: X15 alpha release: as fast as TUX but in use... Jim Gettys
- Re: X15 alpha release: as fast as TUX but in use... Matti Aarnio
- Re: X15 alpha release: as fast as TUX but in use... Linus Torvalds
- Re: X15 alpha release: as fast as TUX but in use... Fabio Riccardi
- Re: X15 alpha release: as fast as TUX but in user sp... David S. Miller

