bsps/leon3: Fix LEON3 timer register store

Fix the this compiler error introduced by commit
d9de3dac5d:

bsps/sparc/leon3/start/amba.c: In function 'amba_initialize':
bsps/sparc/leon3/start/amba.c:221:32: error: passing argument 1 of
'grlib_store_32' makes pointer from integer without a cast
[-Wint-conversion]
  221 |       grlib_store_32(timer_regs->sreload, leon3_timer_prescaler);

Tested with the following config.ini:

[sparc/gr740]
LEON3_GPTIMER_BASE =

Update #5541.

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber
2026-04-10 00:39:23 +02:00
parent d9de3dac5d
commit c66a0efb45
+1 -1
View File
@@ -218,7 +218,7 @@ static void amba_initialize(void)
* GRTIMER/GPTIMER hardware. See HW manual.
*/
if (leon3_timer_prescaler) {
grlib_store_32(timer_regs->sreload, leon3_timer_prescaler);
grlib_store_32(&timer_regs->sreload, leon3_timer_prescaler);
}
LEON3_Timer_Regs = timer_regs;