pgtable.h (a108772d03d8bdb43258218b00bfe43bbe1e8800) pgtable.h (4df29d2b9024d6ababc6342cf5f721cbaff517b5)
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999, 2000
5 * Author(s): Hartmut Penner (hp@de.ibm.com)
6 * Ulrich Weigand (weigand@de.ibm.com)
7 * Martin Schwidefsky (schwidefsky@de.ibm.com)
8 *

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

1772
1773#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
1774#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
1775
1776#define kern_addr_valid(addr) (1)
1777
1778extern int vmem_add_mapping(unsigned long start, unsigned long size);
1779extern void vmem_remove_mapping(unsigned long start, unsigned long size);
1/* SPDX-License-Identifier: GPL-2.0 */
2/*
3 * S390 version
4 * Copyright IBM Corp. 1999, 2000
5 * Author(s): Hartmut Penner (hp@de.ibm.com)
6 * Ulrich Weigand (weigand@de.ibm.com)
7 * Martin Schwidefsky (schwidefsky@de.ibm.com)
8 *

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

1772
1773#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
1774#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
1775
1776#define kern_addr_valid(addr) (1)
1777
1778extern int vmem_add_mapping(unsigned long start, unsigned long size);
1779extern void vmem_remove_mapping(unsigned long start, unsigned long size);
1780extern int __vmem_map_4k_page(unsigned long addr, unsigned long phys, pgprot_t prot, bool alloc);
1781extern int vmem_map_4k_page(unsigned long addr, unsigned long phys, pgprot_t prot);
1782extern void vmem_unmap_4k_page(unsigned long addr);
1780extern int s390_enable_sie(void);
1781extern int s390_enable_skey(void);
1782extern void s390_reset_cmma(struct mm_struct *mm);
1783
1784/* s390 has a private copy of get unmapped area to deal with cache synonyms */
1785#define HAVE_ARCH_UNMAPPED_AREA
1786#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
1787
1788#define pmd_pgtable(pmd) \
1789 ((pgtable_t)__va(pmd_val(pmd) & -sizeof(pte_t)*PTRS_PER_PTE))
1790
1791#endif /* _S390_PAGE_H */
1783extern int s390_enable_sie(void);
1784extern int s390_enable_skey(void);
1785extern void s390_reset_cmma(struct mm_struct *mm);
1786
1787/* s390 has a private copy of get unmapped area to deal with cache synonyms */
1788#define HAVE_ARCH_UNMAPPED_AREA
1789#define HAVE_ARCH_UNMAPPED_AREA_TOPDOWN
1790
1791#define pmd_pgtable(pmd) \
1792 ((pgtable_t)__va(pmd_val(pmd) & -sizeof(pte_t)*PTRS_PER_PTE))
1793
1794#endif /* _S390_PAGE_H */