pgtable.h (a008a3004340887370aea38b5cd441b1db110041) | pgtable.h (f7536442353d1b6bb0c7c8ad1ec549d9fa215106) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#ifndef __ASM_CSKY_PGTABLE_H 4#define __ASM_CSKY_PGTABLE_H 5 6#include <asm/fixmap.h> 7#include <asm/memory.h> 8#include <asm/addrspace.h> --- 4 unchanged lines hidden (view full) --- 13#define PGDIR_SIZE (1UL << PGDIR_SHIFT) 14#define PGDIR_MASK (~(PGDIR_SIZE-1)) 15 16#define USER_PTRS_PER_PGD (PAGE_OFFSET/PGDIR_SIZE) 17 18/* 19 * C-SKY is two-level paging structure: 20 */ | 1/* SPDX-License-Identifier: GPL-2.0 */ 2 3#ifndef __ASM_CSKY_PGTABLE_H 4#define __ASM_CSKY_PGTABLE_H 5 6#include <asm/fixmap.h> 7#include <asm/memory.h> 8#include <asm/addrspace.h> --- 4 unchanged lines hidden (view full) --- 13#define PGDIR_SIZE (1UL << PGDIR_SHIFT) 14#define PGDIR_MASK (~(PGDIR_SIZE-1)) 15 16#define USER_PTRS_PER_PGD (PAGE_OFFSET/PGDIR_SIZE) 17 18/* 19 * C-SKY is two-level paging structure: 20 */ |
21#define PGD_ORDER 0 | |
22 | 21 |
23#define PTRS_PER_PGD ((PAGE_SIZE << PGD_ORDER) / sizeof(pgd_t)) | 22#define PTRS_PER_PGD (PAGE_SIZE / sizeof(pgd_t)) |
24#define PTRS_PER_PMD 1 25#define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) 26 27#define pte_ERROR(e) \ 28 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, (e).pte_low) 29#define pgd_ERROR(e) \ 30 pr_err("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e)) 31 --- 228 unchanged lines hidden --- | 23#define PTRS_PER_PMD 1 24#define PTRS_PER_PTE (PAGE_SIZE / sizeof(pte_t)) 25 26#define pte_ERROR(e) \ 27 pr_err("%s:%d: bad pte %08lx.\n", __FILE__, __LINE__, (e).pte_low) 28#define pgd_ERROR(e) \ 29 pr_err("%s:%d: bad pgd %08lx.\n", __FILE__, __LINE__, pgd_val(e)) 30 --- 228 unchanged lines hidden --- |