bsp/aarch64: Fix array warning

Updates #4664
This commit is contained in:
Chris Johns
2022-06-11 12:08:07 +10:00
parent ae2367c505
commit 66dc06efce

View File

@@ -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)