RTEMS: bsps/powerpc/qoriq/start/mmu-config.c File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
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.

## Detailed Description

MMU implementation.

## Macro Definition Documentation

## ◆ ENTRY_DEV

#define ENTRY_DEV | ( |  | b,
|  |  | s
| ) |  |

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 \
}

## ◆ ENTRY_DEV_CACHED

#define ENTRY_DEV_CACHED | ( |  | b,
|  |  | s
| ) |  |

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 \
}

## ◆ ENTRY_IO

#define ENTRY_IO | ( |  | b,
|  |  | s
| ) |  |

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 \
}

## ◆ ENTRY_R

#define ENTRY_R | ( |  | b,
|  |  | s
| ) |  |

Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = 0, \
.mas3 = FSL_EIS_MAS3_SR \
}

## ◆ ENTRY_RW

#define ENTRY_RW | ( |  | b,
|  |  | s
| ) |  |

Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = ENTRY_RW_MAS2, \
.mas3 = FSL_EIS_MAS3_SR | FSL_EIS_MAS3_SW \
}

## ◆ ENTRY_X

#define ENTRY_X | ( |  | b,
|  |  | s
| ) |  |

Value:
{ \
.begin = (uintptr_t) b, \
.size = (uintptr_t) s, \
.mas2 = 0, \
.mas3 = FSL_EIS_MAS3_SX \
}