RTEMS  5.1
Data Structures | Macros | Functions
mmu-config.c File Reference

MMU implementation. More...

#include <bsp.h>
#include <bsp/bootcard.h>
#include <bsp/fdt.h>
#include <bsp/linker-symbols.h>
#include <bsp/mmu.h>
#include <bsp/qoriq.h>
#include <sys/param.h>
#include <libfdt.h>
#include <rtems/config.h>
#include <rtems/sysinit.h>

Data Structures

struct  entry
 

Macros

#define TEXT   __attribute__((section(".bsp_start_text")))
 
#define DATA   __attribute__((section(".bsp_start_data")))
 
#define ENTRY_X(b, s)
 
#define ENTRY_R(b, s)
 
#define ENTRY_RW_MAS2   0
 
#define ENTRY_RW(b, s)
 
#define ENTRY_IO(b, s)
 
#define ENTRY_DEV(b, s)
 
#define ENTRY_DEV_CACHED(b, s)
 
#define WORKSPACE_ENTRY_INDEX   0
 

Functions

void TEXT qoriq_mmu_config (bool boot_processor, int first_tlb, int scratch_tlb)
 
 RTEMS_SYSINIT_ITEM (bsp_memory_initialize, RTEMS_SYSINIT_MEMORY, RTEMS_SYSINIT_ORDER_MIDDLE)
 
const Memory_Information_Memory_Get (void)
 Return the memory information of this platform. More...
 

Detailed Description

MMU implementation.

Macro Definition Documentation

◆ ENTRY_DEV

#define ENTRY_DEV (   b,
 
)
Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = FSL_EIS_MAS2_I | FSL_EIS_MAS2_G, \
.mas3 = FSL_EIS_MAS3_SR | FSL_EIS_MAS3_SW, \
.mas7 = QORIQ_MMU_DEVICE_MAS7 \
}
unsigned size
Definition: tte.h:74

◆ ENTRY_DEV_CACHED

#define ENTRY_DEV_CACHED (   b,
 
)
Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = FSL_EIS_MAS2_M | FSL_EIS_MAS2_G, \
.mas3 = FSL_EIS_MAS3_SR | FSL_EIS_MAS3_SW, \
.mas7 = QORIQ_MMU_DEVICE_MAS7 \
}
unsigned size
Definition: tte.h:74

◆ ENTRY_IO

#define ENTRY_IO (   b,
 
)
Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = FSL_EIS_MAS2_I | FSL_EIS_MAS2_G, \
.mas3 = FSL_EIS_MAS3_SR | FSL_EIS_MAS3_SW \
}
unsigned size
Definition: tte.h:74

◆ ENTRY_R

#define ENTRY_R (   b,
 
)
Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = 0, \
.mas3 = FSL_EIS_MAS3_SR \
}
unsigned size
Definition: tte.h:74

◆ ENTRY_RW

#define ENTRY_RW (   b,
 
)
Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = ENTRY_RW_MAS2, \
.mas3 = FSL_EIS_MAS3_SR | FSL_EIS_MAS3_SW \
}
unsigned size
Definition: tte.h:74

◆ ENTRY_X

#define ENTRY_X (   b,
 
)
Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = 0, \
.mas3 = FSL_EIS_MAS3_SX \
}
unsigned size
Definition: tte.h:74