Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/amd64/stand/prekern I forgot to say in my previous ...



details:   https://anonhg.NetBSD.org/src/rev/b51c0744f4dc
branches:  trunk
changeset: 828066:b51c0744f4dc
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Nov 26 11:08:34 2017 +0000

description:
I forgot to say in my previous commit that the PRNG is inspired from a
conversation with Taylor and Thor on tech-kern@.

(just add a comment)

diffstat:

 sys/arch/amd64/stand/prekern/prng.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r fc3606d49809 -r b51c0744f4dc sys/arch/amd64/stand/prekern/prng.c
--- a/sys/arch/amd64/stand/prekern/prng.c       Sun Nov 26 11:01:09 2017 +0000
+++ b/sys/arch/amd64/stand/prekern/prng.c       Sun Nov 26 11:08:34 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: prng.c,v 1.1 2017/11/26 11:01:09 maxv Exp $    */
+/*     $NetBSD: prng.c,v 1.2 2017/11/26 11:08:34 maxv Exp $    */
 
 /*
  * Copyright (c) 2017 The NetBSD Foundation, Inc. All rights reserved.
@@ -154,6 +154,7 @@
 
        memset(&rng, 0, sizeof(rng));
 
+       /* detect cpu features */
        cpuid(0x07, 0x00, descs);
        has_rdseed = (descs[1] & CPUID_SEF_RDSEED) != 0;
        cpuid(0x01, 0x00, descs);



Home | Main Index | Thread Index | Old Index