diff options
author | kib <kib@FreeBSD.org> | 2010-11-14 18:24:12 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2010-11-14 18:24:12 +0000 |
commit | 336fd1996df470b1167f39d51c1bd90e7947c827 (patch) | |
tree | c4fc0dde2563ce225c82fea2bdd9e0706c91a717 /sys/amd64 | |
parent | 217241ab5e72e8cd40a82e2ba679dc66b77f22e3 (diff) | |
download | FreeBSD-src-336fd1996df470b1167f39d51c1bd90e7947c827.zip FreeBSD-src-336fd1996df470b1167f39d51c1bd90e7947c827.tar.gz |
Use symbolic names instead of hardcoding values for magic p_osrel constants.
MFC after: 1 week
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/trap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c index 786d8ec..a1a3ebc 100644 --- a/sys/amd64/amd64/trap.c +++ b/sys/amd64/amd64/trap.c @@ -415,9 +415,9 @@ trap(struct trapframe *frame) * This check also covers the images * without the ABI-tag ELF note. */ - if (SV_CURPROC_ABI() == - SV_ABI_FREEBSD && - p->p_osrel >= 700004) { + if (SV_CURPROC_ABI() == SV_ABI_FREEBSD + && p->p_osrel >= + __FreeBSD_version_SIGSEGV) { i = SIGSEGV; ucode = SEGV_ACCERR; } else { |