arm: Disable unaligned access traps
GCC enables unaligned memory access for ARMv6 and above. Once unaligned memory access is allowed, there's no need for the unaligned memory access trap. The change prevents the situation when the compiler generates code that uses unaligned memory access, but the CPU generates an exception when this code runs. Change-Id: Id33f2264c631772e5c561e76fb579d8b7bc26e1e Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
This commit is contained in:
parent
6e71586c37
commit
8d76b7b083
1 changed files with 0 additions and 1 deletions
|
@ -357,5 +357,4 @@ void _Fault(const NANO_ESF *esf)
|
|||
void _FaultInit(void)
|
||||
{
|
||||
_ScbDivByZeroFaultEnable();
|
||||
_ScbUnalignedFaultEnable();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue