arm: cmsis: Convert _Scb*FaultAddrGet to use direct CMSIS register access
Coverted: _ScbBusFaultAddrGet _ScbMemFaultAddrGet To use direct CMSIS register access Jira: ZEP-1568 Change-Id: Ic49b3ac3fc4fb63d413f273569c77f6539e4e572 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d2679c7bbb
commit
737207f052
2 changed files with 4 additions and 32 deletions
|
@ -89,18 +89,6 @@ static inline void _ScbMemFaultAllFaultsReset(void)
|
|||
__scs.scb.cfsr.byte.mmfsr.val = 0xfe;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Find out the faulting address on an MPU fault
|
||||
*
|
||||
* @return the faulting address
|
||||
*/
|
||||
|
||||
static inline uint32_t _ScbMemFaultAddrGet(void)
|
||||
{
|
||||
return __scs.scb.mmfar;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Invalid the value in BFAR
|
||||
|
@ -130,20 +118,6 @@ static inline void _ScbBusFaultAllFaultsReset(void)
|
|||
__scs.scb.cfsr.byte.bfsr.val = 0xfe;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Get the faulting address on a precise bus fault
|
||||
*
|
||||
* This routine returns the faulting address for a precise bus fault.
|
||||
*
|
||||
* @return the faulting address
|
||||
*/
|
||||
|
||||
static inline uint32_t _ScbBusFaultAddrGet(void)
|
||||
{
|
||||
return __scs.scb.bfar;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @brief Clear all usage faults (UFSR register)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue