From: Kenn H. <ke...@us...> - 2005-03-28 16:37:21
|
Update of /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29191/include/asm-vax/mm Modified Files: pagelet_pgprot.h pagelet_pte.h Log Message: Implement pte_read() Index: pagelet_pgprot.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm/pagelet_pgprot.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- pagelet_pgprot.h 20 May 2002 00:33:39 -0000 1.3 +++ pagelet_pgprot.h 28 Mar 2005 16:36:59 -0000 1.4 @@ -58,7 +58,7 @@ #define _PAGE_CHG_MASK (_PFN_MASK | _PAGE_ACCESSED | _PAGE_DIRTY) -/*#define PAGE_PROT_MASK (0x1e000000)*/ +#define PAGE_PROT_MASK 0x78000000 #define PAGE_NONE __pgprot(_PAGE_VALID | _PAGE_ACCESSED) #define PAGE_SHARED __pgprot(_PAGE_VALID | _PAGE_ACCESSED | _PAGE_UW ) Index: pagelet_pte.h =================================================================== RCS file: /cvsroot/linux-vax/kernel-2.5/include/asm-vax/mm/pagelet_pte.h,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- pagelet_pte.h 26 Aug 2003 23:20:39 -0000 1.6 +++ pagelet_pte.h 28 Mar 2005 16:37:00 -0000 1.7 @@ -1,5 +1,6 @@ #ifndef _VAX_MM_PAGELET_PTE_H #define _VAX_MM_PAGELET_PTE_H + /* * pagelet_pte.h * @@ -233,6 +234,12 @@ return pte; } +static inline int pte_read(pte_t pte) +{ + /* If the page protection is non-zero, page is always kernel readable */ + return (pte_val(pte) & PAGE_PROT_MASK); +} + static inline int pte_write(pte_t pte) { return !(pte_val(pte) & _PAGE_RO); |