Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pgtable_mm.h File Reference
#include <asm-generic/4level-fixup.h>
#include <asm/setup.h>
#include <asm/processor.h>
#include <linux/sched.h>
#include <linux/threads.h>
#include <asm/virtconvert.h>
#include <asm/motorola_pgtable.h>
#include <asm-generic/pgtable.h>

Go to the source code of this file.

Macros

#define set_pte(pteptr, pteval)
 
#define set_pte_at(mm, addr, ptep, pteval)   set_pte(ptep,pteval)
 
#define PMD_SHIFT   22
 
#define PMD_SIZE   (1UL << PMD_SHIFT)
 
#define PMD_MASK   (~(PMD_SIZE-1))
 
#define PGDIR_SHIFT   25
 
#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)
 
#define PGDIR_MASK   (~(PGDIR_SIZE-1))
 
#define PTRS_PER_PTE   1024
 
#define PTRS_PER_PMD   8
 
#define PTRS_PER_PGD   128
 
#define USER_PTRS_PER_PGD   (TASK_SIZE/PGDIR_SIZE)
 
#define FIRST_USER_ADDRESS   0
 
#define KMAP_START   0xd0000000
 
#define KMAP_END   0xf0000000
 
#define VMALLOC_OFFSET   (8*1024*1024)
 
#define VMALLOC_START   (((unsigned long) high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))
 
#define VMALLOC_END   KMAP_START
 
#define ZERO_PAGE(vaddr)   (virt_to_page(empty_zero_page))
 
#define BITS_PER_PTR   (8*sizeof(unsigned long))
 
#define PTR_MASK   (~(sizeof(void*)-1))
 
#define SIZEOF_PTR_LOG2   2
 
#define kern_addr_valid(addr)   (1)
 
#define io_remap_pfn_range(vma, vaddr, pfn, size, prot)   remap_pfn_range(vma, vaddr, pfn, size, prot)
 
#define __SUN3_PAGE_NOCACHE   0
 
#define pgprot_noncached(prot)
 
#define pgtable_cache_init()   do { } while (0)
 
#define check_pgt_cache()   do { } while (0)
 

Functions

void kernel_set_cachemode (void *addr, unsigned long size, int cmode)
 

Variables

voidempty_zero_page
 

Macro Definition Documentation

#define __SUN3_PAGE_NOCACHE   0

Definition at line 161 of file pgtable_mm.h.

#define BITS_PER_PTR   (8*sizeof(unsigned long))

Definition at line 113 of file pgtable_mm.h.

#define check_pgt_cache (   void)    do { } while (0)

Definition at line 181 of file pgtable_mm.h.

#define FIRST_USER_ADDRESS   0

Definition at line 69 of file pgtable_mm.h.

#define io_remap_pfn_range (   vma,
  vaddr,
  pfn,
  size,
  prot 
)    remap_pfn_range(vma, vaddr, pfn, size, prot)

Definition at line 138 of file pgtable_mm.h.

#define kern_addr_valid (   addr)    (1)

Definition at line 136 of file pgtable_mm.h.

#define KMAP_END   0xf0000000

Definition at line 80 of file pgtable_mm.h.

#define KMAP_START   0xd0000000

Definition at line 79 of file pgtable_mm.h.

#define PGDIR_MASK   (~(PGDIR_SIZE-1))

Definition at line 49 of file pgtable_mm.h.

#define PGDIR_SHIFT   25

Definition at line 46 of file pgtable_mm.h.

#define PGDIR_SIZE   (1UL << PGDIR_SHIFT)

Definition at line 48 of file pgtable_mm.h.

#define pgprot_noncached (   prot)
Value:

Definition at line 163 of file pgtable_mm.h.

#define pgtable_cache_init (   void)    do { } while (0)

Definition at line 179 of file pgtable_mm.h.

#define PMD_MASK   (~(PMD_SIZE-1))

Definition at line 38 of file pgtable_mm.h.

#define PMD_SHIFT   22

Definition at line 35 of file pgtable_mm.h.

#define PMD_SIZE   (1UL << PMD_SHIFT)

Definition at line 37 of file pgtable_mm.h.

#define PTR_MASK   (~(sizeof(void*)-1))

Definition at line 116 of file pgtable_mm.h.

#define PTRS_PER_PGD   128

Definition at line 66 of file pgtable_mm.h.

#define PTRS_PER_PMD   8

Definition at line 65 of file pgtable_mm.h.

#define PTRS_PER_PTE   1024

Definition at line 64 of file pgtable_mm.h.

#define set_pte (   pteptr,
  pteval 
)
Value:
do{ \
*(pteptr) = (pteval); \
} while(0)

Definition at line 24 of file pgtable_mm.h.

#define set_pte_at (   mm,
  addr,
  ptep,
  pteval 
)    set_pte(ptep,pteval)

Definition at line 28 of file pgtable_mm.h.

#define SIZEOF_PTR_LOG2   2

Definition at line 120 of file pgtable_mm.h.

#define USER_PTRS_PER_PGD   (TASK_SIZE/PGDIR_SIZE)

Definition at line 68 of file pgtable_mm.h.

#define VMALLOC_END   KMAP_START

Definition at line 100 of file pgtable_mm.h.

#define VMALLOC_OFFSET   (8*1024*1024)

Definition at line 98 of file pgtable_mm.h.

#define VMALLOC_START   (((unsigned long) high_memory + VMALLOC_OFFSET) & ~(VMALLOC_OFFSET-1))

Definition at line 99 of file pgtable_mm.h.

#define ZERO_PAGE (   vaddr)    (virt_to_page(empty_zero_page))

Definition at line 110 of file pgtable_mm.h.

Function Documentation

void kernel_set_cachemode ( void addr,
unsigned long  size,
int  cmode 
)

Definition at line 49 of file kmap.c.

Variable Documentation

void* empty_zero_page

Definition at line 42 of file mmu.c.