diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2017-12-20 23:37:54 +0300 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2017-12-21 02:16:18 +0300 |
commit | f5a16b93e6291ba1f65f55647cb4cd8d75ed1b35 (patch) | |
tree | 4c6243cc717af027d95dff55542b05b067ef16a8 /arch/arc/include/uapi/asm | |
parent | 79435ac78d160e4c245544d457850a56f805ac0d (diff) | |
download | linux-f5a16b93e6291ba1f65f55647cb4cd8d75ed1b35.tar.xz |
ARC: handle gcc generated __builtin_trap()
gcc toggle -fisolate-erroneous-paths-dereference (default at -O2
onwards) isolates faulty code paths such as null pointer access, divide
by zero etc by emitting __builtin_trap()
Newer ARC gcc generates TRAP_S 5 instruction which needs to be handled
and treated like any other unexpected exception
- user mode : task terminated with a SEGV
- kernel mode: die() called after register and stack dump
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/include/uapi/asm')
0 files changed, 0 insertions, 0 deletions