Changeset 416 for GPL/branches/uniaud32-2.0/include/asm/pgtable.h
- Timestamp:
- Mar 23, 2009, 12:05:32 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-2.0/include/asm/pgtable.h
r32 r416 69 69 #define __beep() asm("movb $0x3,%al; outb %al,$0x61") 70 70 71 /* PMD_SHIFT determines the size of the area a second-level page table can map */ 72 #define PMD_SHIFT 22 71 73 #define PMD_SIZE (1UL << PMD_SHIFT) 72 74 #define PMD_MASK (~(PMD_SIZE-1)) 75 76 /* PGDIR_SHIFT determines what a third-level page table entry can map */ 77 #define PGDIR_SHIFT 22 73 78 #define PGDIR_SIZE (1UL << PGDIR_SHIFT) 74 79 #define PGDIR_MASK (~(PGDIR_SIZE-1)) 75 80 81 /* 82 * entries per page directory level: the i386 is two-level, so 83 * we don't really have any PMD directory physically. 84 */ 85 #define PTRS_PER_PTE 1024 86 #define PTRS_PER_PMD 1 87 #define PTRS_PER_PGD 1024 76 88 #define USER_PTRS_PER_PGD (TASK_SIZE/PGDIR_SIZE) 89 77 90 78 91 #define USER_PGD_PTRS (PAGE_OFFSET >> PGDIR_SHIFT) … … 189 202 #define pages_to_mb(x) ((x) >> (20-PAGE_SHIFT)) 190 203 #define pte_page(x) (mem_map+pte_pagenr(x)) 204 205 /* Find an entry in the second-level page table.. */ 206 extern inline pmd_t * pmd_offset(pgd_t * dir, unsigned long address) 207 { 208 return (pmd_t *) dir; 209 } 191 210 192 211 /*
Note:
See TracChangeset
for help on using the changeset viewer.