|
#define | set_pte(pteptr, pteval) ((*(pteptr)) = (pteval)) |
|
#define | set_pte_at(mm, addr, ptep, pteval) set_pte(ptep,pteval) |
|
#define | PMD_SHIFT (PAGE_SHIFT + (PAGE_SHIFT-3)) |
|
#define | PMD_SIZE (1UL << PMD_SHIFT) |
|
#define | PMD_MASK (~(PMD_SIZE-1)) |
|
#define | PGDIR_SHIFT (PAGE_SHIFT + 2*(PAGE_SHIFT-3)) |
|
#define | PGDIR_SIZE (1UL << PGDIR_SHIFT) |
|
#define | PGDIR_MASK (~(PGDIR_SIZE-1)) |
|
#define | PTRS_PER_PTE (1UL << (PAGE_SHIFT-3)) |
|
#define | PTRS_PER_PMD (1UL << (PAGE_SHIFT-3)) |
|
#define | PTRS_PER_PGD (1UL << (PAGE_SHIFT-3)) |
|
#define | USER_PTRS_PER_PGD (TASK_SIZE / PGDIR_SIZE) |
|
#define | FIRST_USER_ADDRESS 0 |
|
#define | PTRS_PER_PAGE (1UL << (PAGE_SHIFT-3)) |
|
#define | VMALLOC_START (-2*PGDIR_SIZE) |
|
#define | VMALLOC_END (-PGDIR_SIZE) |
|
#define | _PAGE_VALID 0x0001 |
|
#define | _PAGE_FOR 0x0002 /* used for page protection (fault on read) */ |
|
#define | _PAGE_FOW 0x0004 /* used for page protection (fault on write) */ |
|
#define | _PAGE_FOE 0x0008 /* used for page protection (fault on exec) */ |
|
#define | _PAGE_ASM 0x0010 |
|
#define | _PAGE_KRE 0x0100 /* xxx - see below on the "accessed" bit */ |
|
#define | _PAGE_URE 0x0200 /* xxx */ |
|
#define | _PAGE_KWE 0x1000 /* used to do the dirty bit in software */ |
|
#define | _PAGE_UWE 0x2000 /* used to do the dirty bit in software */ |
|
#define | _PAGE_DIRTY 0x20000 |
|
#define | _PAGE_ACCESSED 0x40000 |
|
#define | _PAGE_FILE 0x80000 /* set:pagecache, unset:swap */ |
|
#define | __DIRTY_BITS (_PAGE_DIRTY | _PAGE_KWE | _PAGE_UWE) |
|
#define | __ACCESS_BITS (_PAGE_ACCESSED | _PAGE_KRE | _PAGE_URE) |
|
#define | _PFN_MASK 0xFFFFFFFF00000000UL |
|
#define | _PAGE_TABLE (_PAGE_VALID | __DIRTY_BITS | __ACCESS_BITS) |
|
#define | _PAGE_CHG_MASK (_PFN_MASK | __DIRTY_BITS | __ACCESS_BITS) |
|
#define | PAGE_NONE __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOR | _PAGE_FOW | _PAGE_FOE) |
|
#define | PAGE_SHARED __pgprot(_PAGE_VALID | __ACCESS_BITS) |
|
#define | PAGE_COPY __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW) |
|
#define | PAGE_READONLY __pgprot(_PAGE_VALID | __ACCESS_BITS | _PAGE_FOW) |
|
#define | PAGE_KERNEL __pgprot(_PAGE_VALID | _PAGE_ASM | _PAGE_KRE | _PAGE_KWE) |
|
#define | _PAGE_NORMAL(x) __pgprot(_PAGE_VALID | __ACCESS_BITS | (x)) |
|
#define | _PAGE_P(x) _PAGE_NORMAL((x) | (((x) & _PAGE_FOW)?0:_PAGE_FOW)) |
|
#define | _PAGE_S(x) _PAGE_NORMAL(x) |
|
#define | __P000 _PAGE_P(_PAGE_FOE | _PAGE_FOW | _PAGE_FOR) |
|
#define | __P001 _PAGE_P(_PAGE_FOE | _PAGE_FOW) |
|
#define | __P010 _PAGE_P(_PAGE_FOE) |
|
#define | __P011 _PAGE_P(_PAGE_FOE) |
|
#define | __P100 _PAGE_P(_PAGE_FOW | _PAGE_FOR) |
|
#define | __P101 _PAGE_P(_PAGE_FOW) |
|
#define | __P110 _PAGE_P(0) |
|
#define | __P111 _PAGE_P(0) |
|
#define | __S000 _PAGE_S(_PAGE_FOE | _PAGE_FOW | _PAGE_FOR) |
|
#define | __S001 _PAGE_S(_PAGE_FOE | _PAGE_FOW) |
|
#define | __S010 _PAGE_S(_PAGE_FOE) |
|
#define | __S011 _PAGE_S(_PAGE_FOE) |
|
#define | __S100 _PAGE_S(_PAGE_FOW | _PAGE_FOR) |
|
#define | __S101 _PAGE_S(_PAGE_FOW) |
|
#define | __S110 _PAGE_S(0) |
|
#define | __S111 _PAGE_S(0) |
|
#define | pgprot_noncached(prot) (prot) |
|
#define | BAD_PAGETABLE __bad_pagetable() |
|
#define | BAD_PAGE __bad_page() |
|
#define | ZERO_PAGE(vaddr) (virt_to_page(ZERO_PGE)) |
|
#define | BITS_PER_PTR (8*sizeof(unsigned long)) |
|
#define | PTR_MASK (~(sizeof(void*)-1)) |
|
#define | SIZEOF_PTR_LOG2 3 |
|
#define | PAGE_PTR(address) ((unsigned long)(address)>>(PAGE_SHIFT-SIZEOF_PTR_LOG2)&PTR_MASK&~PAGE_MASK) |
|
#define | PHYS_TWIDDLE(pfn) (pfn) |
|
#define | page_to_pa(page) (((page) - mem_map) << PAGE_SHIFT) |
|
#define | pte_pfn(pte) (pte_val(pte) >> 32) |
|
#define | pte_page(pte) pfn_to_page(pte_pfn(pte)) |
|
#define | mk_pte(page, pgprot) |
|
#define | pmd_page(pmd) (mem_map + ((pmd_val(pmd) & _PFN_MASK) >> 32)) |
|
#define | pgd_page(pgd) (mem_map + ((pgd_val(pgd) & _PFN_MASK) >> 32)) |
|
#define | PAGE_DIR_OFFSET(tsk, address) pgd_offset((tsk),(address)) |
|
#define | pgd_offset_k(address) pgd_offset(&init_mm, (address)) |
|
#define | pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) |
|
#define | pgd_offset(mm, address) ((mm)->pgd+pgd_index(address)) |
|
#define | pte_offset_map(dir, addr) pte_offset_kernel((dir),(addr)) |
|
#define | pte_unmap(pte) do { } while (0) |
|
#define | __swp_type(x) (((x).val >> 32) & 0xff) |
|
#define | __swp_offset(x) ((x).val >> 40) |
|
#define | __swp_entry(type, off) ((swp_entry_t) { pte_val(mk_swap_pte((type), (off))) }) |
|
#define | __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) }) |
|
#define | __swp_entry_to_pte(x) ((pte_t) { (x).val }) |
|
#define | pte_to_pgoff(pte) (pte_val(pte) >> 32) |
|
#define | pgoff_to_pte(off) ((pte_t) { ((off) << 32) | _PAGE_FILE }) |
|
#define | PTE_FILE_MAX_BITS 32 |
|
#define | kern_addr_valid(addr) (1) |
|
#define | io_remap_pfn_range(vma, start, pfn, size, prot) remap_pfn_range(vma, start, pfn, size, prot) |
|
#define | pte_ERROR(e) printk("%s:%d: bad pte %016lx.\n", __FILE__, __LINE__, pte_val(e)) |
|
#define | pmd_ERROR(e) printk("%s:%d: bad pmd %016lx.\n", __FILE__, __LINE__, pmd_val(e)) |
|
#define | pgd_ERROR(e) printk("%s:%d: bad pgd %016lx.\n", __FILE__, __LINE__, pgd_val(e)) |
|
#define | pgtable_cache_init() do { } while (0) |
|
#define | HAVE_ARCH_UNMAPPED_AREA |
|