From: Kenn H. <ke...@us...> - 2001-02-05 00:03:21
|
Update of /cvsroot/linux-vax/kernel-2.4/include/asm-vax/mm In directory usw-pr-cvs1:/tmp/cvs-serv29639/mm Modified Files: pgtable.h Log Message: A few one-liners to fix some warnings Index: pgtable.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.4/include/asm-vax/mm/pgtable.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- pgtable.h 2001/01/29 00:49:26 1.5 +++ pgtable.h 2001/02/05 00:03:30 1.6 @@ -323,6 +323,9 @@ ((unsigned long) __va(pmd_val(pmd) & _PFN_MASK)) /* to find an entry in a page-table-directory */ +#define pgd_index(address) ((address >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) +#define __pgd_offset(address) pgd_index(address) + #define pgd_offset(mm, address) \ ((mm)->pgd + ((address) >> PGDIR_SHIFT)) @@ -348,6 +351,7 @@ /* Needs to be defined here and not in linux/mm.h, as it is arch dependent * This is used on sparc processors to implement memory holes */ #define PageSkip(page) (0) +#define kern_addr_valid(addr) (1) extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) { |