[PATCH] bsp/aarch64: Fix array warning

Joel Sherrill joel at rtems.org
Sat Jun 11 14:59:38 UTC 2022


Should this use that obscure pointer macro Sebastian suggests sometimes?

On Fri, Jun 10, 2022, 9:09 PM <chrisj at rtems.org> wrote:

> From: Chris Johns <chrisj at rtems.org>
>
> Updates #4664
> ---
>  bsps/aarch64/include/bsp/start.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bsps/aarch64/include/bsp/start.h
> b/bsps/aarch64/include/bsp/start.h
> index 586eec4f48..f0af5be841 100644
> --- a/bsps/aarch64/include/bsp/start.h
> +++ b/bsps/aarch64/include/bsp/start.h
> @@ -172,7 +172,7 @@ AArch64_start_set_vector_base(void)
>    /*
>     * Do not use bsp_vector_table_begin == 0, since this will get
> optimized away.
>    */
> -  if (bsp_vector_table_end != bsp_vector_table_size) {
> +  if (&bsp_vector_table_end[0] != &bsp_vector_table_size[0]) {
>      __asm__ volatile (
>        "msr VBAR_EL1, %[vtable]\n"
>        : : [vtable] "r" (bsp_start_vector_table_begin)
> --
> 2.24.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20220611/72ddccc2/attachment.htm>


More information about the devel mailing list