diff options
| author | kamil <kamil@NetBSD.org> | 2019-02-07 00:19:54 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2019-02-07 00:19:54 +0000 |
| commit | a90026053b7853b031b75801d8002dd54ac8f183 (patch) | |
| tree | 8b0c3043aba2dcf75e78a7a011cb87fe0f87f121 /sys/dev/raidframe | |
| parent | d333e92b79571478cf30acff7d25d44438d5b020 (diff) | |
Define PTRACE_ILLEGAL_ASM for NetBSD/amd64 in ptrace.h
Use ud2 instruction that is guaranteed to raise an invalid instruction
exception (through SIGILL).
On NetBSD and FreeBSD this instruction raises ILL_PRVOPC, on Linux
ILL_ILLOPN. It's not clear which opion is better "Privileged opcode" vs
"Illegal operand", because ud2 doesn't seem to be a privileged operation
and it doesn't take any operand.
Assume in future changes that this opcode will raise ILL_PRVOPC and keep
it purely for testing purposes of the SIGILL crash type.
Diffstat (limited to 'sys/dev/raidframe')
0 files changed, 0 insertions, 0 deletions
