git: kernel - Fix bugs in rdrand, change sampling frequency

Matthew Dillon dillon at crater.dragonflybsd.org
Tue Feb 25 14:48:15 PST 2014


commit 51a4a9a0482111a96b4665f9e6d93dc9cd1b6b5a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Tue Feb 25 14:46:02 2014 -0800

    kernel - Fix bugs in rdrand, change sampling frequency
    
    * Fix bugs in the rdrand assembly.  %ebx/%rbx is a call-saved register and
      cannot be destroyed.  For 64-bit use %r11 which is a temporary register.
    
    * Increase the rdrand.c frequency from 1Hz to 10Hz
    
    * add the debug.rdrand sysctl
    
    * Use add_buffer_randomness() instead of add_true_randomness().

Summary of changes:
 sys/dev/crypto/rdrand/rdrand.c                | 37 ++++++++++++++++++---------
 sys/dev/crypto/rdrand/rdrand_harvest_i386.S   |  2 ++
 sys/dev/crypto/rdrand/rdrand_harvest_x86_64.S | 16 ++++++------
 3 files changed, 35 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/51a4a9a0482111a96b4665f9e6d93dc9cd1b6b5a


-- 
DragonFly BSD source repository



More information about the Commits mailing list