Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
mmu_emu.c File Reference
#include <linux/mman.h>
#include <linux/mm.h>
#include <linux/kernel.h>
#include <linux/ptrace.h>
#include <linux/delay.h>
#include <linux/bootmem.h>
#include <linux/bitops.h>
#include <linux/module.h>
#include <asm/setup.h>
#include <asm/traps.h>
#include <asm/uaccess.h>
#include <asm/page.h>
#include <asm/pgtable.h>
#include <asm/sun3mmu.h>
#include <asm/segment.h>
#include <asm/oplib.h>
#include <asm/mmu_context.h>
#include <asm/dvma.h>

Go to the source code of this file.

Macros

#define DEBUG_PROM_MAPS
 
#define CONTEXTS_NUM   8
 
#define SEGMAPS_PER_CONTEXT_NUM   2048
 
#define PAGES_PER_SEGMENT   16
 
#define PMEGS_NUM   256
 
#define PMEG_MASK   0xFF
 

Functions

 EXPORT_SYMBOL (m68k_vmalloc_end)
 
void print_pte (pte_t pte)
 
void print_pte_vaddr (unsigned long vaddr)
 
void mmu_emu_init (unsigned long bootmem_end)
 
void clear_context (unsigned long context)
 
unsigned long get_free_context (struct mm_struct *mm)
 
void mmu_emu_map_pmeg (int context, int vaddr)
 
int mmu_emu_handle_fault (unsigned long vaddr, int read_flag, int kernel_fault)
 

Variables

unsigned long m68k_vmalloc_end
 
unsigned long pmeg_vaddr [PMEGS_NUM]
 
unsigned char pmeg_alloc [PMEGS_NUM]
 
unsigned char pmeg_ctx [PMEGS_NUM]
 
unsigned long rom_pages [256]
 

Macro Definition Documentation

#define CONTEXTS_NUM   8

Definition at line 37 of file mmu_emu.c.

#define DEBUG_PROM_MAPS

Definition at line 31 of file mmu_emu.c.

#define PAGES_PER_SEGMENT   16

Definition at line 39 of file mmu_emu.c.

#define PMEG_MASK   0xFF

Definition at line 41 of file mmu_emu.c.

#define PMEGS_NUM   256

Definition at line 40 of file mmu_emu.c.

#define SEGMAPS_PER_CONTEXT_NUM   2048

Definition at line 38 of file mmu_emu.c.

Function Documentation

void clear_context ( unsigned long  context)

Definition at line 207 of file mmu_emu.c.

EXPORT_SYMBOL ( m68k_vmalloc_end  )
unsigned long get_free_context ( struct mm_struct mm)

Definition at line 243 of file mmu_emu.c.

int mmu_emu_handle_fault ( unsigned long  vaddr,
int  read_flag,
int  kernel_fault 
)

Definition at line 353 of file mmu_emu.c.

void mmu_emu_init ( unsigned long  bootmem_end)

Definition at line 125 of file mmu_emu.c.

void mmu_emu_map_pmeg ( int  context,
int  vaddr 
)
inline

Definition at line 281 of file mmu_emu.c.

void print_pte ( pte_t  pte)

Definition at line 69 of file mmu_emu.c.

void print_pte_vaddr ( unsigned long  vaddr)

Definition at line 116 of file mmu_emu.c.

Variable Documentation

unsigned long m68k_vmalloc_end

Definition at line 47 of file mmu_emu.c.

unsigned char pmeg_alloc[PMEGS_NUM]

Definition at line 51 of file mmu_emu.c.

unsigned char pmeg_ctx[PMEGS_NUM]

Definition at line 52 of file mmu_emu.c.

unsigned long pmeg_vaddr[PMEGS_NUM]

Definition at line 50 of file mmu_emu.c.

unsigned long rom_pages[256]

Definition at line 66 of file mmu_emu.c.