]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/sh/include/asm/pgtable-2level.h
Merge remote branch 'wireless-next/master' into ath6kl-next
[mirror_ubuntu-bionic-kernel.git] / arch / sh / include / asm / pgtable-2level.h
CommitLineData
e44d6c40
PM
1#ifndef __ASM_SH_PGTABLE_2LEVEL_H
2#define __ASM_SH_PGTABLE_2LEVEL_H
b73c8063
MF
3
4#include <asm-generic/pgtable-nopmd.h>
5
6/*
7 * traditional two-level paging structure
8 */
782bb5a5 9#define PAGETABLE_LEVELS 2
b73c8063
MF
10
11/* PTE bits */
782bb5a5 12#define PTE_MAGNITUDE 2 /* 32-bit PTEs */
b73c8063 13
782bb5a5
PM
14#define PTE_SHIFT PAGE_SHIFT
15#define PTE_BITS (PTE_SHIFT - PTE_MAGNITUDE)
b73c8063
MF
16
17/* PGD bits */
782bb5a5 18#define PGDIR_SHIFT (PTE_SHIFT + PTE_BITS)
b73c8063 19
782bb5a5 20#define PTRS_PER_PGD (PAGE_SIZE / (1 << PTE_MAGNITUDE))
b73c8063
MF
21#define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE)
22
e44d6c40 23#endif /* __ASM_SH_PGTABLE_2LEVEL_H */