forked from Imagelibrary/rtems
bsps/arm: Add and use bsp_translation_table_base
This commit is contained in:
@@ -41,8 +41,6 @@
|
|||||||
#define LPC32XX_MMU_CODE LPC32XX_MMU_READ_ONLY_CACHED
|
#define LPC32XX_MMU_CODE LPC32XX_MMU_READ_ONLY_CACHED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
LINKER_SYMBOL(lpc32xx_translation_table_base);
|
|
||||||
|
|
||||||
static BSP_START_TEXT_SECTION void clear_bss(void)
|
static BSP_START_TEXT_SECTION void clear_bss(void)
|
||||||
{
|
{
|
||||||
const int *end = (const int *) bsp_section_bss_end;
|
const int *end = (const int *) bsp_section_bss_end;
|
||||||
@@ -155,7 +153,7 @@ static BSP_START_TEXT_SECTION void clear_bss(void)
|
|||||||
{
|
{
|
||||||
uint32_t const dac =
|
uint32_t const dac =
|
||||||
ARM_CP15_DAC_DOMAIN(LPC32XX_MMU_CLIENT_DOMAIN, ARM_CP15_DAC_CLIENT);
|
ARM_CP15_DAC_DOMAIN(LPC32XX_MMU_CLIENT_DOMAIN, ARM_CP15_DAC_CLIENT);
|
||||||
uint32_t *const ttb = (uint32_t *) lpc32xx_translation_table_base;
|
uint32_t *const ttb = (uint32_t *) bsp_translation_table_base;
|
||||||
size_t const config_entry_count =
|
size_t const config_entry_count =
|
||||||
sizeof(lpc32xx_mmu_config_table) / sizeof(lpc32xx_mmu_config_table [0]);
|
sizeof(lpc32xx_mmu_config_table) / sizeof(lpc32xx_mmu_config_table [0]);
|
||||||
size_t i = 0;
|
size_t i = 0;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* @brief Linker support.
|
* @brief Linker support.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
lpc32xx_translation_table_base = ORIGIN (RAM_MMU);
|
bsp_translation_table_base = ORIGIN (RAM_MMU);
|
||||||
|
|
||||||
lpc32xx = 0x20020000;
|
lpc32xx = 0x20020000;
|
||||||
|
|
||||||
|
|||||||
@@ -7,12 +7,13 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2008, 2009
|
* Copyright (c) 2008-2013 embedded brains GmbH. All rights reserved.
|
||||||
* embedded brains GmbH
|
*
|
||||||
* Obere Lagerstr. 30
|
* embedded brains GmbH
|
||||||
* D-82178 Puchheim
|
* Dornierstr. 4
|
||||||
* Germany
|
* 82178 Puchheim
|
||||||
* <rtems@embedded-brains.de>
|
* Germany
|
||||||
|
* <info@embedded-brains.de>
|
||||||
*
|
*
|
||||||
* The license and distribution terms for this file may be
|
* The license and distribution terms for this file may be
|
||||||
* found in the file LICENSE in this distribution or at
|
* found in the file LICENSE in this distribution or at
|
||||||
@@ -120,6 +121,8 @@ LINKER_SYMBOL(bsp_start_vector_table_begin)
|
|||||||
LINKER_SYMBOL(bsp_start_vector_table_end)
|
LINKER_SYMBOL(bsp_start_vector_table_end)
|
||||||
LINKER_SYMBOL(bsp_start_vector_table_size)
|
LINKER_SYMBOL(bsp_start_vector_table_size)
|
||||||
|
|
||||||
|
LINKER_SYMBOL(bsp_translation_table_base)
|
||||||
|
|
||||||
#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
|
#define BSP_FAST_TEXT_SECTION __attribute__((section(".bsp_fast_text")))
|
||||||
|
|
||||||
#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data")))
|
#define BSP_FAST_DATA_SECTION __attribute__((section(".bsp_fast_data")))
|
||||||
|
|||||||
Reference in New Issue
Block a user