Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mmu_context.h File Reference
#include <asm/machvec.h>
#include <asm/compiler.h>
#include <asm-generic/mm_hooks.h>
#include <asm/io.h>
#include <asm/smp.h>

Go to the source code of this file.

Macros

#define EV4_MAX_ASN   63
 
#define EV5_MAX_ASN   127
 
#define EV6_MAX_ASN   255
 
#define MAX_ASN   EV6_MAX_ASN
 
#define cpu_last_asn(cpuid)   last_asn
 
#define WIDTH_HARDWARE_ASN   8
 
#define ASN_FIRST_VERSION   (1UL << WIDTH_HARDWARE_ASN)
 
#define HARDWARE_ASN_MASK   ((1UL << WIDTH_HARDWARE_ASN) - 1)
 
#define __EXTERN_INLINE   extern inline
 
#define __MMU_EXTERN_INLINE
 
#define check_mmu_context()   do { } while(0)
 
#define deactivate_mm(tsk, mm)   do { } while (0)
 
#define switch_mm(a, b, c)   ev5_switch_mm((a),(b),(c))
 
#define activate_mm(x, y)   ev5_activate_mm((x),(y))
 

Functions

unsigned long __get_new_mm_context (struct mm_struct *mm, long cpu)
 
__EXTERN_INLINE void ev5_switch_mm (struct mm_struct *prev_mm, struct mm_struct *next_mm, struct task_struct *next)
 
__EXTERN_INLINE void ev4_switch_mm (struct mm_struct *prev_mm, struct mm_struct *next_mm, struct task_struct *next)
 
void __load_new_mm_context (struct mm_struct *)
 
__EXTERN_INLINE void ev5_activate_mm (struct mm_struct *prev_mm, struct mm_struct *next_mm)
 
__EXTERN_INLINE void ev4_activate_mm (struct mm_struct *prev_mm, struct mm_struct *next_mm)
 
void destroy_context (struct mm_struct *mm)
 

Variables

unsigned long last_asn
 

Macro Definition Documentation

#define __EXTERN_INLINE   extern inline

Definition at line 112 of file mmu_context.h.

#define __MMU_EXTERN_INLINE

Definition at line 113 of file mmu_context.h.

#define activate_mm (   x,
  y 
)    ev5_activate_mm((x),(y))

Definition at line 224 of file mmu_context.h.

#define ASN_FIRST_VERSION   (1UL << WIDTH_HARDWARE_ASN)

Definition at line 96 of file mmu_context.h.

#define check_mmu_context ( )    do { } while(0)

Definition at line 197 of file mmu_context.h.

#define cpu_last_asn (   cpuid)    last_asn

Definition at line 92 of file mmu_context.h.

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

Definition at line 213 of file mmu_context.h.

#define EV4_MAX_ASN   63

Definition at line 63 of file mmu_context.h.

#define EV5_MAX_ASN   127

Definition at line 64 of file mmu_context.h.

#define EV6_MAX_ASN   255

Definition at line 65 of file mmu_context.h.

#define HARDWARE_ASN_MASK   ((1UL << WIDTH_HARDWARE_ASN) - 1)

Definition at line 97 of file mmu_context.h.

#define MAX_ASN   EV6_MAX_ASN

Definition at line 75 of file mmu_context.h.

#define switch_mm (   a,
  b,
  c 
)    ev5_switch_mm((a),(b),(c))

Definition at line 223 of file mmu_context.h.

#define WIDTH_HARDWARE_ASN   8

Definition at line 95 of file mmu_context.h.

Function Documentation

unsigned long __get_new_mm_context ( struct mm_struct mm,
long  cpu 
)
inline

Definition at line 117 of file mmu_context.h.

void __load_new_mm_context ( struct mm_struct )

Definition at line 41 of file fault.c.

void destroy_context ( struct mm_struct mm)
inline

Definition at line 242 of file mmu_context.h.

__EXTERN_INLINE void ev4_activate_mm ( struct mm_struct prev_mm,
struct mm_struct next_mm 
)

Definition at line 207 of file mmu_context.h.

__EXTERN_INLINE void ev4_switch_mm ( struct mm_struct prev_mm,
struct mm_struct next_mm,
struct task_struct next 
)

Definition at line 162 of file mmu_context.h.

__EXTERN_INLINE void ev5_activate_mm ( struct mm_struct prev_mm,
struct mm_struct next_mm 
)

Definition at line 201 of file mmu_context.h.

__EXTERN_INLINE void ev5_switch_mm ( struct mm_struct prev_mm,
struct mm_struct next_mm,
struct task_struct next 
)

Definition at line 132 of file mmu_context.h.

Variable Documentation

unsigned long last_asn

Definition at line 37 of file fault.c.