direct-io.hg

changeset 14128:9be2dec913b7

linux: Fix backward compatibility in page table handling

A 3.0.2 compatibility requirement slipped my attention before
submitting the original page table handling changes.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author kfraser@localhost.localdomain
date Mon Feb 26 14:09:08 2007 +0000 (2007-02-26)
parents 720afbf74001
children ca1dd3480540
files linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h
line diff
     1.1 --- a/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h	Mon Feb 26 13:56:01 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/include/asm-i386/mach-xen/asm/page.h	Mon Feb 26 14:09:08 2007 +0000
     1.3 @@ -139,7 +139,11 @@ typedef struct { unsigned long pgprot; }
     1.4  static inline unsigned long pgd_val(pgd_t x)
     1.5  {
     1.6  	unsigned long ret = x.pgd;
     1.7 +#ifdef CONFIG_XEN_COMPAT_030002
     1.8 +	if (ret) ret = machine_to_phys(ret) | _PAGE_PRESENT;
     1.9 +#else
    1.10  	if (ret & _PAGE_PRESENT) ret = machine_to_phys(ret);
    1.11 +#endif
    1.12  	return ret;
    1.13  }
    1.14  #define HPAGE_SHIFT	22