aboutsummaryrefslogtreecommitdiffstats
path: root/arch/csky/abiv1/inc/abi/pgtable-bits.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/csky/abiv1/inc/abi/pgtable-bits.h')
-rw-r--r--arch/csky/abiv1/inc/abi/pgtable-bits.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/arch/csky/abiv1/inc/abi/pgtable-bits.h b/arch/csky/abiv1/inc/abi/pgtable-bits.h
new file mode 100644
index 000000000000..455075b5db0d
--- /dev/null
+++ b/arch/csky/abiv1/inc/abi/pgtable-bits.h
@@ -0,0 +1,37 @@
1/* SPDX-License-Identifier: GPL-2.0 */
2// Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
3
4#ifndef __ASM_CSKY_PGTABLE_BITS_H
5#define __ASM_CSKY_PGTABLE_BITS_H
6
7/* implemented in software */
8#define _PAGE_ACCESSED (1<<3)
9#define PAGE_ACCESSED_BIT (3)
10
11#define _PAGE_READ (1<<1)
12#define _PAGE_WRITE (1<<2)
13#define _PAGE_PRESENT (1<<0)
14
15#define _PAGE_MODIFIED (1<<4)
16#define PAGE_MODIFIED_BIT (4)
17
18/* implemented in hardware */
19#define _PAGE_GLOBAL (1<<6)
20
21#define _PAGE_VALID (1<<7)
22#define PAGE_VALID_BIT (7)
23
24#define _PAGE_DIRTY (1<<8)
25#define PAGE_DIRTY_BIT (8)
26
27#define _PAGE_CACHE (3<<9)
28#define _PAGE_UNCACHE (2<<9)
29
30#define _CACHE_MASK (7<<9)
31
32#define _CACHE_CACHED (_PAGE_VALID | _PAGE_CACHE)
33#define _CACHE_UNCACHED (_PAGE_VALID | _PAGE_UNCACHE)
34
35#define HAVE_ARCH_UNMAPPED_AREA
36
37#endif /* __ASM_CSKY_PGTABLE_BITS_H */