From: Kenn H. <ke...@us...> - 2002-12-02 00:12:33
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm In directory sc8-pr-cvs1:/tmp/cvs-serv15899 Modified Files: pagelet_pte.h Log Message: 2.5.5 uses struct page pointers to refer to pages in page tables (to allow PTEs in HIGHMEM). This requires a few more macros for other arches. We stub these out here (pte_offset_kernel, pte_offset_map, pte_offset_map_nested, pte_unmap and pte_unmap_nested). Index: pagelet_pte.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm/pagelet_pte.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- pagelet_pte.h 20 May 2002 00:33:39 -0000 1.3 +++ pagelet_pte.h 2 Dec 2002 00:12:30 -0000 1.4 @@ -275,7 +275,19 @@ static inline int pte_present(pte_t pte) { return (pte_val(pte) & _PAGE_VALID); } extern pte_t * pte_offset(pmd_t * dir, unsigned long address); - + +/* These variants on pte_offset are for i386 where pages of PTEs might + be in highmem and thus have to be re-mapped < 4GB before accessing. + The pte_unmap() functions undo whatever has to be done by the _map() + functions */ +#define pte_offset_kernel(dir, address) pte_offset(dir, address) +#define pte_offset_map(dir, address) pte_offset(dir, address) +#define pte_offset_map_nested(dir, address) pte_offset(dir, address) +#define pte_unmap(pte) /* nothing to undo */ +#define pte_unmap_nested(pte) /* nothing to undo */ + + + /* items to manipulate a hwpte (for the S0 tables ) */ static inline void set_hwpte(hwpte_t *ptep, hwpte_t pte) |