mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-08-18 20:50:15 +08:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user