From: Jan-Benedict G. <jb...@us...> - 2005-04-25 14:27:50
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24145 Modified Files: pgtable.h Log Message: - Add () around expression Index: pgtable.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm/pgtable.h,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- pgtable.h 25 Apr 2005 14:20:48 -0000 1.14 +++ pgtable.h 25 Apr 2005 14:27:40 -0000 1.15 @@ -60,11 +60,11 @@ /* * Macros to get page table addresses + offsets. * - * if they are 4k ptes then set_pte needs to be used on the results, + * If they are 4K PTEs then set_pte needs to be used on the results, */ /* macro to get linear page table entry for a physical address */ -#define GET_HWSPTE_PHYS(x) ((hwpte_t *)(SPT_BASE + ( ((x) >> PAGELET_SHIFT) << SIZEOF_PTR_LOG2) )) +#define GET_HWSPTE_PHYS(x) ((hwpte_t *) (SPT_BASE + ( ((x) >> PAGELET_SHIFT) << SIZEOF_PTR_LOG2) )) /* this is like it is for a reason - we need to wipe out the lower bits, the old * calculation using page_shift-sizeof_pte_log2 gave the wrong answer sometimes */ @@ -76,7 +76,7 @@ #define GET_SPTE_VIRT(x) GET_SPTE_PHYS(((unsigned long)x) - PAGE_OFFSET) /* macro to get the virtual address represented by an SPTE, given the address of the SPTE */ -#define SPTE_TO_VIRT(p) (void *)((((unsigned long)p - (unsigned long)swapper_pg_dir[2].br) << (PAGE_SHIFT-SIZEOF_PTE_LOG2)) + PAGE_OFFSET) +#define SPTE_TO_VIRT(p) ((void *)((((unsigned long)p - (unsigned long)swapper_pg_dir[2].br) << (PAGE_SHIFT-SIZEOF_PTE_LOG2)) + PAGE_OFFSET)) #ifndef __ASSEMBLY__ /* Other architectures put a virtual hole between the end of |