bsps/m68k/mcf5329/start/init5329.c: Address comparison of arrays

GCC warned about comparing arrays by name. Changed to casting all
array names to (uintptr_t).
This commit is contained in:
Joel Sherrill
2025-07-17 16:07:29 -05:00
committed by Kinsey Moore
parent 1a394709eb
commit 262cbd69f3

View File

@@ -37,7 +37,7 @@ void Init5329(void)
/* /*
* Copy the vector table to RAM * Copy the vector table to RAM
*/ */
if (&_VBR != (void *) _INTERRUPT_VECTOR) { if ((uintptr_t)&_VBR != (uintptr_t)_INTERRUPT_VECTOR) {
sp = (uint32_t *) _INTERRUPT_VECTOR; sp = (uint32_t *) _INTERRUPT_VECTOR;
dp = (uint32_t *) &_VBR; dp = (uint32_t *) &_VBR;
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
@@ -50,7 +50,7 @@ void Init5329(void)
/* /*
* Move initialized data from ROM to RAM. * Move initialized data from ROM to RAM.
*/ */
if (_data_src_start != _data_dest_start) { if ((uintptr_t)_data_src_start != (uintptr_t)_data_dest_start) {
dbp = (uint8_t *) _data_dest_start; dbp = (uint8_t *) _data_dest_start;
sbp = (uint8_t *) _data_src_start; sbp = (uint8_t *) _data_src_start;
i = _data_dest_end - _data_dest_start; i = _data_dest_end - _data_dest_start;
@@ -62,7 +62,7 @@ void Init5329(void)
* Zero uninitialized data * Zero uninitialized data
*/ */
if (_clear_start != _clear_end) { if ((uintptr_t)_clear_start != (uintptr_t)_clear_end) {
sbp = _clear_start; sbp = _clear_start;
dbp = _clear_end; dbp = _clear_end;
i = dbp - sbp; i = dbp - sbp;