ia64/xen-unstable

changeset 3813:4b4a77f35103

bitkeeper revision 1.1159.260.2 (420e0856crqXXEkQoCUddas8u5ksXA)

Rename check_pagetable() function to _check_pagetable to make it easier
to selectively enable it during debugging. There's still the same
check_pagetable macro, but now it's used both when SHADOW_DEBUG is
enabled and disabled.
author mafetter@fleming.research
date Sat Feb 12 13:44:54 2005 +0000 (2005-02-12)
parents fb3675bdcce5
children 58be428f51a8
files xen/arch/x86/shadow.c xen/include/asm-x86/shadow.h
line diff
     1.1 --- a/xen/arch/x86/shadow.c	Sat Feb 12 13:42:57 2005 +0000
     1.2 +++ b/xen/arch/x86/shadow.c	Sat Feb 12 13:44:54 2005 +0000
     1.3 @@ -794,7 +794,7 @@ static int check_l1_table(
     1.4          BUG();                                                 \
     1.5      } while ( 0 )
     1.6  
     1.7 -int check_pagetable(struct mm_struct *m, pagetable_t pt, char *s)
     1.8 +int _check_pagetable(struct mm_struct *m, pagetable_t pt, char *s)
     1.9  {
    1.10      unsigned long gptbase = pagetable_val(pt);
    1.11      unsigned long gpfn, spfn;
     2.1 --- a/xen/include/asm-x86/shadow.h	Sat Feb 12 13:42:57 2005 +0000
     2.2 +++ b/xen/include/asm-x86/shadow.h	Sat Feb 12 13:44:54 2005 +0000
     2.3 @@ -573,7 +573,8 @@ static inline void shadow_mk_pagetable(s
     2.4  }
     2.5  
     2.6  #if SHADOW_DEBUG
     2.7 -extern int check_pagetable(struct mm_struct *m, pagetable_t pt, char *s);
     2.8 +extern int _check_pagetable(struct mm_struct *m, pagetable_t pt, char *s);
     2.9 +#define check_pagetable(m, pt, s) _check_pagetable(m, pt, s)
    2.10  #else
    2.11  #define check_pagetable(m, pt, s) ((void)0)
    2.12  #endif