Add initial implementations of early MD random, for use in the boot code.
authorjsing <jsing@openbsd.org>
Sat, 28 Dec 2013 02:25:26 +0000 (02:25 +0000)
committerjsing <jsing@openbsd.org>
Sat, 28 Dec 2013 02:25:26 +0000 (02:25 +0000)
commit8dc182ca631057374ba9f5ec3283834736cfc39d
tree4195590e5fb24f0f3e2781a40bba157ec2fac410
parente6e6dad3324a03134a8814e18ccd61c3a7190a0a
Add initial implementations of early MD random, for use in the boot code.
This makes use of rdrand if the CPU supports it, otherwise we fall back to
using rdtsc. Further development will happen in the tree.

Tested by phessler@

ok deraadt@
sys/arch/amd64/stand/libsa/random_i386.S [new file with mode: 0644]
sys/arch/i386/stand/libsa/random_i386.S [new file with mode: 0644]