[PATCH] libbsp/arm: Add the TTB table to the default MMU set up as read/write.

Pavel Pisa ppisa4lists at pikron.com
Sun Aug 14 10:57:18 UTC 2016


On Tuesday 09 of August 2016 09:39:00 Chris Johns wrote:
> This lets the table be changed at runtime for dynamic loading and
> debugger support.
> ---
>  c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h
> b/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h index
> 01fdbb3..a749f7d 100644
> --- a/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h
> +++ b/c/src/lib/libbsp/arm/shared/include/arm-cp15-start.h
> @@ -88,6 +88,10 @@ typedef struct {
>      .begin = (uint32_t) bsp_section_nocachenoload_begin, \
>      .end = (uint32_t) bsp_section_nocachenoload_end, \
>      .flags = ARMV7_MMU_DEVICE \
> +  }, { \
> +    .begin = (uint32_t) bsp_translation_table_base, \
> +    .end = (uint32_t) bsp_translation_table_end, \
> +    .flags = ARMV7_MMU_DATA_READ_WRITE_CACHED \
>    }
>
>  BSP_START_DATA_SECTION extern const arm_cp15_start_section_config

ACK/+1 from my side



More information about the devel mailing list