pgtable.h (cbbb8683fb632ecadafcf8a5f81d38156d4274ab) pgtable.h (f281b5d50c87ecca108dcbf8f791bd8923fde3de)
1#ifndef _ASM_POWERPC_BOOK3S_32_PGTABLE_H
2#define _ASM_POWERPC_BOOK3S_32_PGTABLE_H
3
4#include <asm-generic/pgtable-nopmd.h>
5
6#include <asm/book3s/32/hash.h>
7
8/* And here we include common definitions */

--- 91 unchanged lines hidden (view full) ---

100 */
101
102#define pte_clear(mm, addr, ptep) \
103 do { pte_update(ptep, ~_PAGE_HASHPTE, 0); } while (0)
104
105#define pmd_none(pmd) (!pmd_val(pmd))
106#define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD)
107#define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK)
1#ifndef _ASM_POWERPC_BOOK3S_32_PGTABLE_H
2#define _ASM_POWERPC_BOOK3S_32_PGTABLE_H
3
4#include <asm-generic/pgtable-nopmd.h>
5
6#include <asm/book3s/32/hash.h>
7
8/* And here we include common definitions */

--- 91 unchanged lines hidden (view full) ---

100 */
101
102#define pte_clear(mm, addr, ptep) \
103 do { pte_update(ptep, ~_PAGE_HASHPTE, 0); } while (0)
104
105#define pmd_none(pmd) (!pmd_val(pmd))
106#define pmd_bad(pmd) (pmd_val(pmd) & _PMD_BAD)
107#define pmd_present(pmd) (pmd_val(pmd) & _PMD_PRESENT_MASK)
108#define pmd_clear(pmdp) do { pmd_val(*(pmdp)) = 0; } while (0)
108static inline void pmd_clear(pmd_t *pmdp)
109{
110 *pmdp = __pmd(0);
111}
109
112
113
110/*
111 * When flushing the tlb entry for a page, we also need to flush the hash
112 * table entry. flush_hash_pages is assembler (for speed) in hashtable.S.
113 */
114extern int flush_hash_pages(unsigned context, unsigned long va,
115 unsigned long pmdval, int count);
116
117/* Add an HPTE to the hash table */

--- 178 unchanged lines hidden ---
114/*
115 * When flushing the tlb entry for a page, we also need to flush the hash
116 * table entry. flush_hash_pages is assembler (for speed) in hashtable.S.
117 */
118extern int flush_hash_pages(unsigned context, unsigned long va,
119 unsigned long pmdval, int count);
120
121/* Add an HPTE to the hash table */

--- 178 unchanged lines hidden ---