mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
grlib/l2c: Access registers with helper functions
This commit is contained in:
committed by
Kinsey Moore
parent
0a2c310d39
commit
6198260d26
@@ -2107,8 +2107,8 @@ int l2cache_error_status(uint32_t * addr, uint32_t * status)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Get error register */
|
/* Get error register */
|
||||||
sts = priv->regs->error_status_control;
|
sts = l2cache_reg_error();
|
||||||
erraddr = priv->regs->error_addr;
|
erraddr = l2cache_reg_error_addr();
|
||||||
|
|
||||||
/* Check if an error occurred */
|
/* Check if an error occurred */
|
||||||
if (sts & L2C_ERROR_VALID){
|
if (sts & L2C_ERROR_VALID){
|
||||||
|
|||||||
Reference in New Issue
Block a user