Go to file
martin 8f46ba3acd Pull up following revision(s) (requested by mrg in ticket #1895):
crypto/external/bsd/openssl/dist/crypto/sparccpuid.S: revision 1.11

fix SPARC v8/v9 detection code.

this code uses a trick where the encoding on both v8 and v9 are
the same, and are not illegal instructions, but that the v9 one
has a detectable difference than v8.

the idea is that we perform a "subcc" (set condition codes) which
sets "%ccr" on v9, which is an unimplemented "%asr2" on v8, then
we read %ccr (v9) or %asr2 (v8), which will always be 0x99 on v9,
and .. is non-trapping but impleentation defined on v8.

for many implementations this returns the value of the %y reg.

as nothing actually sets %y in this path, it remains the value it
was most recently set to by something (anything), and if it just
happens to be 0x99 then the v9 paths will be taken on v8.

fix this by clearing the %y register before the potential read.

fixes PR port-sparc/57594.  tested on ss20 and in qemu.  this
version of the patch has been submitted upstream.
2023-09-06 08:03:45 +00:00
bin Pull up following revision(s) (requested by kre in ticket #1779): 2022-10-27 16:16:50 +00:00
common Pull up following revision(s) (requested by skrll in ticket #1672): 2021-04-26 18:39:26 +00:00
compat Apply patch, requested by mrg in ticket #1684 (no corresponding 2021-06-21 17:43:18 +00:00
crypto Pull up following revision(s) (requested by mrg in ticket #1895): 2023-09-06 08:03:45 +00:00
dist/pf Pull up following revision(s) (requested by maxv in ticket #978): 2018-08-25 11:21:53 +00:00
distrib Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
doc Ticket #1894 2023-09-04 18:00:03 +00:00
etc Pull up following revision(s) (requested by riastradh in ticket #1843): 2023-06-21 21:50:34 +00:00
external Pull up following revision(s) (requested by gutteridge in ticket #1850): 2023-07-07 18:49:27 +00:00
extsrc
games Pull up following revision(s) (requested by nia in ticket #1544): 2020-04-30 16:21:14 +00:00
include Pull up following revision(s) (requested by is in ticket #1625): 2020-11-29 11:18:54 +00:00
lib Pull up following revision(s) (requested by riastradh in ticket #1878): 2023-08-04 13:06:58 +00:00
libexec Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
regress Pull up following revision(s) (requested by maxv in ticket #282): 2017-09-23 17:27:02 +00:00
rescue Remove MKCRYPTO option. 2017-05-21 15:28:36 +00:00
sbin Pull up following revision(s) (requested by msaitoh in ticket #1741): 2022-05-15 12:15:53 +00:00
share Pull up following revision(s) (requested by msaitoh in ticket #1784): 2023-01-19 10:41:58 +00:00
sys Pull up following revision(s) (requested by msaitoh in ticket #1894): 2023-09-04 17:57:49 +00:00
tests Pull up following revision(s) (requested by riastradh in ticket #1886): 2023-08-09 16:16:40 +00:00
tools Apply patch, requested by maya in ticket #1070: 2018-10-26 15:12:53 +00:00
usr.bin Pull up following revision(s) (requested by riastradh in ticket #1879): 2023-08-04 13:12:00 +00:00
usr.sbin Pull up following revision(s) (requested by msaitoh in ticket #1892): 2023-08-23 18:10:06 +00:00
BUILDING regen 2017-05-21 15:30:20 +00:00
Makefile don't descend into gnu 2017-04-11 14:04:15 +00:00
Makefile.inc
UPDATING New dhcpcd does not like update builds from previous versions. 2017-04-03 09:37:58 +00:00
build.sh Pull up the following revision (requested by martin in ticket #1807): 2023-03-13 21:36:29 +00:00