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 | 23ec09480fa96efc29c7c83a997d295febc5e205 (patch) | |
tree | fccd0ea01943a98711aa0c887a553155943cd5dc /lib/libc/sys/flock.2 | |
parent | fba18e8930f0013e2d480c233d6947b90925354c (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/libc/sys/flock.2')
0 files changed, 0 insertions, 0 deletions