From 6cc2ad381c64deec9371e2ab0390148e7b3f8d22 Mon Sep 17 00:00:00 2001 From: Nick Piggin Date: Mon, 28 Apr 2008 02:13:03 -0700 Subject: [PATCH] --- yaml --- r: 94027 b: refs/heads/master c: a08cb629f546d1cecebe955392197f226e58dbe1 h: refs/heads/master i: 94025: 439c24627f4c72686e8b5892a215167980f2072b 94023: 444c9f227594381aea0f3ff0aa8ad98c37d277f9 v: v3 --- [refs] | 2 +- trunk/include/asm-s390/pgtable.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 02f9a4b162c9..3cdb027a44e4 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 70688e4dd1647f0ceb502bbd5964fa344c5eb411 +refs/heads/master: a08cb629f546d1cecebe955392197f226e58dbe1 diff --git a/trunk/include/asm-s390/pgtable.h b/trunk/include/asm-s390/pgtable.h index 76e8a7904e8a..f8347ce9c5a1 100644 --- a/trunk/include/asm-s390/pgtable.h +++ b/trunk/include/asm-s390/pgtable.h @@ -220,6 +220,8 @@ extern char empty_zero_page[PAGE_SIZE]; /* Software bits in the page table entry */ #define _PAGE_SWT 0x001 /* SW pte type bit t */ #define _PAGE_SWX 0x002 /* SW pte type bit x */ +#define _PAGE_SPECIAL 0x004 /* SW associated with special page */ +#define __HAVE_ARCH_PTE_SPECIAL /* Six different types of pages. */ #define _PAGE_TYPE_EMPTY 0x400 @@ -520,7 +522,7 @@ static inline int pte_file(pte_t pte) static inline int pte_special(pte_t pte) { - return 0; + return (pte_val(pte) & _PAGE_SPECIAL); } #define __HAVE_ARCH_PTE_SAME @@ -722,6 +724,7 @@ static inline pte_t pte_mkyoung(pte_t pte) static inline pte_t pte_mkspecial(pte_t pte) { + pte_val(pte) |= _PAGE_SPECIAL; return pte; }