debuggers.hg

changeset 22271:fe3018c6976d

x86_32: sh_clear_up_pointer is only used if CONFIG_PAGING_LEVELS >= 4

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
author Keir Fraser <keir@xen.org>
date Mon Oct 04 12:52:14 2010 +0100 (2010-10-04)
parents a4016a257672
children 83a97418d9cd
files xen/arch/x86/mm/shadow/common.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/common.c	Sat Oct 02 15:05:50 2010 +0100
     1.2 +++ b/xen/arch/x86/mm/shadow/common.c	Mon Oct 04 12:52:14 2010 +0100
     1.3 @@ -2776,6 +2776,7 @@ sh_remove_all_shadows_and_parents(struct
     1.4  
     1.5  /**************************************************************************/
     1.6  
     1.7 +#if CONFIG_PAGING_LEVELS >= 4
     1.8  /* Reset the up-pointers of every L3 shadow to 0. 
     1.9   * This is called when l3 shadows stop being pinnable, to clear out all
    1.10   * the list-head bits so the up-pointer field is properly inititalised. */
    1.11 @@ -2784,6 +2785,7 @@ static int sh_clear_up_pointer(struct vc
    1.12      mfn_to_page(smfn)->up = 0;
    1.13      return 0;
    1.14  }
    1.15 +#endif
    1.16  
    1.17  void sh_reset_l3_up_pointers(struct vcpu *v)
    1.18  {