ia64/xen-unstable

changeset 12919:539355c03a30

[XEN][POWERPC] Allocated wrong order for dummy page
This patch makes sure that the dummy page is only 4k not 8k.
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
author Jimi Xenidis <jimix@watson.ibm.com>
date Tue Sep 26 12:44:20 2006 -0400 (2006-09-26)
parents ae1f00361a8e
children 97e1d0fd7def
files xen/arch/powerpc/dart.c
line diff
     1.1 --- a/xen/arch/powerpc/dart.c	Tue Sep 26 12:42:33 2006 -0400
     1.2 +++ b/xen/arch/powerpc/dart.c	Tue Sep 26 12:44:20 2006 -0400
     1.3 @@ -60,8 +60,8 @@ union dart_entry {
     1.4      u32 de_word;
     1.5      struct {
     1.6          u32 de_v:1;             /* valid */
     1.7 -        u32 de_rp:1;             /* read protected*/
     1.8 -        u32 de_wp:1;             /* write protected*/
     1.9 +        u32 de_rp:1;             /* read protected */
    1.10 +        u32 de_wp:1;             /* write protected */
    1.11          u32 _de_res:5;
    1.12          u32 de_ppn:24;         /* 24 bit Physical Page Number
    1.13                                   * representing address [28:51] */
    1.14 @@ -98,7 +98,6 @@ static u32 dart_encode(int perm, ulong r
    1.15      if (perm & DART_WRITE) {
    1.16          e.de_bits.de_wp = 0;
    1.17      }
    1.18 -
    1.19      return e.de_word;
    1.20  }
    1.21  
    1.22 @@ -263,7 +262,7 @@ static int init_dart(void)
    1.23  
    1.24      /* Linux uses a dummy page, filling "empty" DART entries with a
    1.25         reference to this page to capture stray DMA's */
    1.26 -    dummy_page = (ulong)alloc_xenheap_pages(1);
    1.27 +    dummy_page = (ulong)alloc_xenheap_pages(0);
    1.28      clear_page((void *)dummy_page);
    1.29      dummy_page >>= PAGE_SHIFT;
    1.30