CVSROOT:        /cvs
Module name:    src
Changes by:     m...@cvs.openbsd.org    2014/05/02 13:59:16

Modified files:
        lib/libssl/src/crypto/sha/asm: sha512-parisc.pl 

Log message:
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)

Reply via email to