[PATCH] aarch64: Memory map the noinit section

Chris Johns chrisj at rtems.org
Sun Jul 17 23:33:11 UTC 2022


Thanks for handling this. I have tested it works and is now required.

I will push it.

Chris

On 16/7/2022 6:45 am, Kinsey Moore wrote:
> This section was added recently and must be mapped to be accessed
> without generating an exception.
> ---
>  bsps/aarch64/include/bsp/aarch64-mmu.h    | 4 ++++
>  bsps/aarch64/include/bsp/linker-symbols.h | 4 ++++
>  2 files changed, 8 insertions(+)
> 
> diff --git a/bsps/aarch64/include/bsp/aarch64-mmu.h b/bsps/aarch64/include/bsp/aarch64-mmu.h
> index bca7e0ce8d..35fc79d73a 100644
> --- a/bsps/aarch64/include/bsp/aarch64-mmu.h
> +++ b/bsps/aarch64/include/bsp/aarch64-mmu.h
> @@ -91,6 +91,10 @@ typedef struct {
>      .begin = (uintptr_t) bsp_section_rtemsstack_begin, \
>      .end = (uintptr_t) bsp_section_rtemsstack_end, \
>      .flags = AARCH64_MMU_DATA_RW_CACHED \
> +  }, { \
> +    .begin = (uintptr_t) bsp_section_noinit_begin, \
> +    .end = (uintptr_t) bsp_section_noinit_end, \
> +    .flags = AARCH64_MMU_DATA_RW_CACHED \
>    }, { \
>      .begin = (uintptr_t) bsp_section_work_begin, \
>      .end = (uintptr_t) bsp_section_work_end, \
> diff --git a/bsps/aarch64/include/bsp/linker-symbols.h b/bsps/aarch64/include/bsp/linker-symbols.h
> index 38c655ba97..222c217abb 100644
> --- a/bsps/aarch64/include/bsp/linker-symbols.h
> +++ b/bsps/aarch64/include/bsp/linker-symbols.h
> @@ -108,6 +108,10 @@ LINKER_SYMBOL(bsp_section_rtemsstack_begin)
>  LINKER_SYMBOL(bsp_section_rtemsstack_end)
>  LINKER_SYMBOL(bsp_section_rtemsstack_size)
>  
> +LINKER_SYMBOL(bsp_section_noinit_begin)
> +LINKER_SYMBOL(bsp_section_noinit_end)
> +LINKER_SYMBOL(bsp_section_noinit_size)
> +
>  LINKER_SYMBOL(bsp_section_work_begin)
>  LINKER_SYMBOL(bsp_section_work_end)
>  LINKER_SYMBOL(bsp_section_work_size)


More information about the devel mailing list