diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-02 19:59:17 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2014-05-02 19:59:17 +0000 |
commit | 5d74345e566ddf93dec4faf4764414a88be77a9d (patch) | |
tree | fd0214d449402953443a2122f30af9825a29d46e /lib/libpcap/pcap-namedb.h | |
parent | 0d3d8a27ca03e2625150ba0fe4f031c2508d0db0 (diff) |
The assembly sha512 code detects at runtime if it is running on a 64-bit
processor (PA2.0) and, if so, switches to 64-bit code.
However, when running under a 32-bit OpenBSD/hppa kernel, there is no guarantee
that the upper part of the registers will be preserved accross context switches
(or even userland->kernel boundaries), which causes this code to fail.
Wrap the generated code within #ifndef __OpenBSD__ in that case, to avoid
using the 64-bit code completely. (OpenBSD/hppa64, once stable, will not be
affected by this)
Diffstat (limited to 'lib/libpcap/pcap-namedb.h')
0 files changed, 0 insertions, 0 deletions