Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mmu_context_64.h File Reference
#include <linux/spinlock.h>
#include <asm/spitfire.h>
#include <asm-generic/mm_hooks.h>

Go to the source code of this file.


#define smp_new_mmu_context_version()   do { } while (0)
#define smp_tsb_sync(__mm)   do { } while (0)
#define load_secondary_context(__mm)
#define deactivate_mm(tsk, mm)   do { } while (0)


void get_new_mmu_context (struct mm_struct *mm)
int init_new_context (struct task_struct *tsk, struct mm_struct *mm)
void destroy_context (struct mm_struct *mm)
void __tsb_context_switch (unsigned long pgd_pa, struct tsb_config *tsb_base, struct tsb_config *tsb_huge, unsigned long tsb_descr_pa)
void tsb_grow (struct mm_struct *mm, unsigned long tsb_index, unsigned long mm_rss)
void __flush_tlb_mm (unsigned long, unsigned long)


spinlock_t ctx_alloc_lock
unsigned long tlb_context_cache
unsigned long mmu_context_bmap []

Macro Definition Documentation

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

Definition at line 131 of file mmu_context_64.h.

#define load_secondary_context (   __mm)
__asm__ __volatile__( \
"\n661: stxa %0, [%1] %2\n" \
" .section .sun4v_1insn_patch, \"ax\"\n" \
" .word 661b\n" \
" stxa %0, [%1] %3\n" \
" .previous\n" \
" flush %%g6\n" \
: /* No outputs */ \
: "r" (CTX_HWBITS((__mm)->context)), \

Definition at line 57 of file mmu_context_64.h.

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

Definition at line 24 of file mmu_context_64.h.

#define smp_tsb_sync (   __mm)    do { } while (0)

Definition at line 53 of file mmu_context_64.h.

Function Documentation

void __flush_tlb_mm ( unsigned  long,
unsigned  long 
void __tsb_context_switch ( unsigned long  pgd_pa,
struct tsb_config tsb_base,
struct tsb_config tsb_huge,
unsigned long  tsb_descr_pa 
void destroy_context ( struct mm_struct mm)

Definition at line 242 of file mmu_context.h.

void get_new_mmu_context ( struct mm_struct mm)

Definition at line 674 of file init_64.c.

int init_new_context ( struct task_struct tsk,
struct mm_struct mm 

Definition at line 143 of file tlb.c.

void tsb_grow ( struct mm_struct mm,
unsigned long  tsb_index,
unsigned long  mm_rss 

Definition at line 291 of file tsb.c.

Variable Documentation

spinlock_t ctx_alloc_lock
unsigned long mmu_context_bmap[]
unsigned long tlb_context_cache

Definition at line 659 of file init_64.c.