 |
RTEMS 7.0-rc1
|
Loading...
Searching...
No Matches
18#ifndef _LIBCPU_PGTABLE_H
19#define _LIBCPU_PGTABLE_H
54#define PMD_SIZE (1UL << PMD_SHIFT)
55#define PMD_MASK (~(PMD_SIZE-1))
59#define PGDIR_SIZE (1UL << PGDIR_SHIFT)
60#define PGDIR_MASK (~(PGDIR_SIZE-1))
66#define PTRS_PER_PTE 1024
68#define PTRS_PER_PGD 1024
69#define USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE)
87#define VMALLOC_OFFSET (0x4000000)
88#define VMALLOC_START ((((long)high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1)))
89#define VMALLOC_VMADDR(x) ((unsigned long)(x))
90#define VMALLOC_END ioremap_bot
96#define _PAGE_PRESENT 0x001
97#define _PAGE_USER 0x002
99#define _PAGE_GUARDED 0x008
100#define _PAGE_COHERENT 0x010
101#define _PAGE_NO_CACHE 0x020
102#define _PAGE_WRITETHRU 0x040
103#define _PAGE_DIRTY 0x080
104#define _PAGE_ACCESSED 0x100
105#define _PAGE_HWWRITE 0x200
106#define _PAGE_SHARED 0
108#define _PAGE_CHG_MASK (PAGE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY)
110#define _PAGE_BASE _PAGE_PRESENT | _PAGE_ACCESSED
111#define _PAGE_WRENABLE _PAGE_RW | _PAGE_DIRTY | _PAGE_HWWRITE
113#define PAGE_NONE __pgprot(_PAGE_PRESENT | _PAGE_ACCESSED)
115#define PAGE_SHARED __pgprot(_PAGE_BASE | _PAGE_RW | _PAGE_USER | \
117#define PAGE_COPY __pgprot(_PAGE_BASE | _PAGE_USER)
118#define PAGE_READONLY __pgprot(_PAGE_BASE | _PAGE_USER)
119#define PAGE_KERNEL __pgprot(_PAGE_BASE | _PAGE_WRENABLE | _PAGE_SHARED)
120#define PAGE_KERNEL_CI __pgprot(_PAGE_BASE | _PAGE_WRENABLE | _PAGE_SHARED | \
129#define __P000 PAGE_NONE
130#define __P001 PAGE_READONLY
131#define __P010 PAGE_COPY
132#define __P011 PAGE_COPY
133#define __P100 PAGE_READONLY
134#define __P101 PAGE_READONLY
135#define __P110 PAGE_COPY
136#define __P111 PAGE_COPY
138#define __S000 PAGE_NONE
139#define __S001 PAGE_READONLY
140#define __S010 PAGE_SHARED
141#define __S011 PAGE_SHARED
142#define __S100 PAGE_READONLY
143#define __S101 PAGE_READONLY
144#define __S110 PAGE_SHARED
145#define __S111 PAGE_SHARED