diff options
author | bde <bde@FreeBSD.org> | 2002-01-30 17:47:12 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 2002-01-30 17:47:12 +0000 |
commit | 5909c8df4dc4ada0325629a022f8cb2fb883488e (patch) | |
tree | 03f73a59f0676574dc10a2f2b2d127d5a2258d3e /tools | |
parent | 2aa4b18cd1eaf39b83dacb13149fd9b9234ab9f0 (diff) | |
download | FreeBSD-src-5909c8df4dc4ada0325629a022f8cb2fb883488e.zip FreeBSD-src-5909c8df4dc4ada0325629a022f8cb2fb883488e.tar.gz |
Cleaned up the 0ldSiG magic check before removing it. Just use fuword()
to fetch the magic word instead of useracc() plus a direct access.
This is more efficient as well as simpler and less incorrect:
- it was inefficent because useracc() takes much longer than just
accessing the data using a correct access method, at least on i386's.
- it was incorrect because direct access is incorrect unless the address
has been mapped. This and nearby direct accesses are mostly handled
better for other arches because they have to be (direct accesses don't
work).
- using magic in sigreturn is still fundamentally broken because false
matches are possible. On i386's, a false match occurs when %eip in a
new signal context happens to equal the magic value. This is not
handled better for other arches.
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions