ia64/xen-unstable

changeset 18503:325904748847

[IA64] A small fix in mm.c. Use PAGE_MASK, not ~PAGE_MASK.

~PAGE_MASK was wrongly used to get page aligned address.
Use PAGE_MASK, not ~PAGE_MASK.

Signed-off-by: Anthony xu <anthony.xu@intel.com>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Thu Sep 25 11:47:53 2008 +0900 (2008-09-25)
parents 6055360dbfe4
children e82909f42732
files xen/arch/ia64/xen/mm.c
line diff
     1.1 --- a/xen/arch/ia64/xen/mm.c	Thu Sep 25 11:47:53 2008 +0900
     1.2 +++ b/xen/arch/ia64/xen/mm.c	Thu Sep 25 11:47:53 2008 +0900
     1.3 @@ -1016,10 +1016,10 @@ ioports_permit_access(struct domain *d, 
     1.4      lp = IO_SPACE_PORT(lp);
     1.5  
     1.6      if (space->sparse) {
     1.7 -        mmio_start = IO_SPACE_SPARSE_ENCODING(fp) & ~PAGE_MASK;
     1.8 +        mmio_start = IO_SPACE_SPARSE_ENCODING(fp) & PAGE_MASK;
     1.9          mmio_end = PAGE_ALIGN(IO_SPACE_SPARSE_ENCODING(lp));
    1.10      } else {
    1.11 -        mmio_start = fp & ~PAGE_MASK;
    1.12 +        mmio_start = fp & PAGE_MASK;
    1.13          mmio_end = PAGE_ALIGN(lp);
    1.14      }
    1.15  
    1.16 @@ -1079,10 +1079,10 @@ ioports_deny_access(struct domain *d, un
    1.17      lp_base = IO_SPACE_PORT(lp);
    1.18  
    1.19      if (space->sparse) {
    1.20 -        mmio_start = IO_SPACE_SPARSE_ENCODING(fp_base) & ~PAGE_MASK;
    1.21 +        mmio_start = IO_SPACE_SPARSE_ENCODING(fp_base) & PAGE_MASK;
    1.22          mmio_end = PAGE_ALIGN(IO_SPACE_SPARSE_ENCODING(lp_base));
    1.23      } else {
    1.24 -        mmio_start = fp_base & ~PAGE_MASK;
    1.25 +        mmio_start = fp_base & PAGE_MASK;
    1.26          mmio_end = PAGE_ALIGN(lp_base);
    1.27      }
    1.28