Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Variables
mmu_context.h File Reference
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/smp.h>
#include <linux/slab.h>
#include <asm/cacheflush.h>
#include <asm/hazards.h>
#include <asm/tlbflush.h>
#include <asm-generic/mm_hooks.h>

Go to the source code of this file.

Macros

#define TLBMISS_HANDLER_SETUP_PGD(pgd)   pgd_current[smp_processor_id()] = (unsigned long)(pgd)
 
#define ASID_INC   0x1
 
#define ASID_MASK   0xff
 
#define cpu_context(cpu, mm)   ((mm)->context.asid[cpu])
 
#define cpu_asid(cpu, mm)   (cpu_context((cpu), (mm)) & ASID_MASK)
 
#define asid_cache(cpu)   (cpu_data[cpu].asid_cache)
 
#define ASID_VERSION_MASK   ((unsigned long)~(ASID_MASK|(ASID_MASK-1)))
 
#define ASID_FIRST_VERSION   ((unsigned long)(~ASID_VERSION_MASK) + 1)
 
#define deactivate_mm(tsk, mm)   do { } while (0)
 

Variables

unsigned long pgd_current []
 

Macro Definition Documentation

#define asid_cache (   cpu)    (cpu_data[cpu].asid_cache)

Definition at line 97 of file mmu_context.h.

#define ASID_FIRST_VERSION   ((unsigned long)(~ASID_VERSION_MASK) + 1)

Definition at line 108 of file mmu_context.h.

#define ASID_INC   0x1

Definition at line 90 of file mmu_context.h.

#define ASID_MASK   0xff

Definition at line 91 of file mmu_context.h.

#define ASID_VERSION_MASK   ((unsigned long)~(ASID_MASK|(ASID_MASK-1)))

Definition at line 107 of file mmu_context.h.

#define cpu_asid (   cpu,
  mm 
)    (cpu_context((cpu), (mm)) & ASID_MASK)

Definition at line 96 of file mmu_context.h.

#define cpu_context (   cpu,
  mm 
)    ((mm)->context.asid[cpu])

Definition at line 95 of file mmu_context.h.

#define deactivate_mm (   tsk,
  mm 
)    do { } while (0)

Definition at line 213 of file mmu_context.h.

#define TLBMISS_HANDLER_SETUP_PGD (   pgd)    pgd_current[smp_processor_id()] = (unsigned long)(pgd)

Definition at line 49 of file mmu_context.h.

Variable Documentation

unsigned long pgd_current[]

Definition at line 470 of file init.c.