ia64/xen-unstable

changeset 13526:3464bb656a9c

[linux] Fix set_fixmap for vdso mapping on i386 and make x86_64 version correcter.

Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
author Christian Limpach <Christian.Limpach@xensource.com>
date Thu Jan 18 09:54:33 2007 +0000 (2007-01-18)
parents 3adf00179a63
children 8475a4e0425e
files linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c	Wed Jan 17 18:41:22 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/mm/pgtable-xen.c	Thu Jan 18 09:54:33 2007 +0000
     1.3 @@ -215,6 +215,7 @@ void __set_fixmap (enum fixed_addresses 
     1.4  #ifdef CONFIG_X86_F00F_BUG
     1.5  	case FIX_F00F_IDT:
     1.6  #endif
     1.7 +	case FIX_VDSO:
     1.8  		set_pte_pfn(address, phys >> PAGE_SHIFT, flags);
     1.9  		break;
    1.10  	default:
     2.1 --- a/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c	Wed Jan 17 18:41:22 2007 +0000
     2.2 +++ b/linux-2.6-xen-sparse/arch/x86_64/mm/init-xen.c	Thu Jan 18 09:54:33 2007 +0000
     2.3 @@ -351,7 +351,7 @@ void __init
     2.4  		return;
     2.5  	}
     2.6  	switch (idx) {
     2.7 -	case VSYSCALL_FIRST_PAGE:
     2.8 +	case VSYSCALL_LAST_PAGE ... VSYSCALL_FIRST_PAGE:
     2.9  		set_pte_phys(address, phys, prot, SET_FIXMAP_KERNEL);
    2.10  		break;
    2.11  	default: