summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2018-04-28 15:45:00 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2018-04-28 15:45:00 +0000
commitd2aaab80e37b4e76e5cd539983916e5d7dbaf773 (patch)
treee0d12c3bee51150c5e294631e23df47429d120d4 /sys/arch/amd64
parent88c894b365edc9ba3d99f1dba14020c90bf81e72 (diff)
replace add_*_randomness with enqueue_randomness()
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/amd64/bios.c6
-rw-r--r--sys/arch/amd64/amd64/cpu.c6
-rw-r--r--sys/arch/amd64/amd64/via.c4
-rw-r--r--sys/arch/amd64/pci/pchb.c4
4 files changed, 10 insertions, 10 deletions
diff --git a/sys/arch/amd64/amd64/bios.c b/sys/arch/amd64/amd64/bios.c
index 337262fc35e..7132d5bb57c 100644
--- a/sys/arch/amd64/amd64/bios.c
+++ b/sys/arch/amd64/amd64/bios.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bios.c,v 1.35 2017/10/14 04:44:43 jsg Exp $ */
+/* $OpenBSD: bios.c,v 1.36 2018/04/28 15:44:59 jasper Exp $ */
/*
* Copyright (c) 2006 Gordon Willem Klok <gklok@cogeco.ca>
*
@@ -437,7 +437,7 @@ smbios_info(char * str)
if (sminfop) {
infolen = strlen(sminfop) + 1;
for (i = 0; i < infolen - 1; i++)
- add_timer_randomness(sminfop[i]);
+ enqueue_randomness(sminfop[i]);
hw_serial = malloc(infolen, M_DEVBUF, M_NOWAIT);
if (hw_serial)
strlcpy(hw_serial, sminfop, infolen);
@@ -462,7 +462,7 @@ smbios_info(char * str)
hw_uuid = "Not Set";
else {
for (i = 0; i < sizeof(sys->uuid); i++)
- add_timer_randomness(sys->uuid[i]);
+ enqueue_randomness(sys->uuid[i]);
hw_uuid = malloc(SMBIOS_UUID_REPLEN, M_DEVBUF,
M_NOWAIT);
if (hw_uuid) {
diff --git a/sys/arch/amd64/amd64/cpu.c b/sys/arch/amd64/amd64/cpu.c
index bd5f24bf488..6a0ac50aa21 100644
--- a/sys/arch/amd64/amd64/cpu.c
+++ b/sys/arch/amd64/amd64/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.116 2018/04/24 15:32:28 mlarkin Exp $ */
+/* $OpenBSD: cpu.c,v 1.117 2018/04/28 15:44:59 jasper Exp $ */
/* $NetBSD: cpu.c,v 1.1 2003/04/26 18:39:26 fvdl Exp $ */
/*-
@@ -929,8 +929,8 @@ rdrand(void *v)
if (valid)
t.u64 ^= r.u64;
- add_true_randomness(t.u32[0]);
- add_true_randomness(t.u32[1]);
+ enqueue_randomness(t.u32[0]);
+ enqueue_randomness(t.u32[1]);
if (tmo)
timeout_add_msec(tmo, 10);
diff --git a/sys/arch/amd64/amd64/via.c b/sys/arch/amd64/amd64/via.c
index 5c102b67a7b..284649cf675 100644
--- a/sys/arch/amd64/amd64/via.c
+++ b/sys/arch/amd64/amd64/via.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: via.c,v 1.28 2018/02/21 21:09:57 mikeb Exp $ */
+/* $OpenBSD: via.c,v 1.29 2018/04/28 15:44:59 jasper Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -535,7 +535,7 @@ viac3_rnd(void *v)
#endif
for (i = 0, p = buffer; i < VIAC3_RNG_BUFSIZ; i++, p++)
- add_true_randomness(*p);
+ enqueue_randomness(*p);
timeout_add_msec(tmo, 10);
}
diff --git a/sys/arch/amd64/pci/pchb.c b/sys/arch/amd64/pci/pchb.c
index 591523e4b45..6e599d7be4a 100644
--- a/sys/arch/amd64/pci/pchb.c
+++ b/sys/arch/amd64/pci/pchb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pchb.c,v 1.42 2017/10/14 04:44:43 jsg Exp $ */
+/* $OpenBSD: pchb.c,v 1.43 2018/04/28 15:44:59 jasper Exp $ */
/* $NetBSD: pchb.c,v 1.1 2003/04/26 18:39:50 fvdl Exp $ */
/*
* Copyright (c) 2000 Michael Shalayeff
@@ -328,7 +328,7 @@ pchb_rnd(void *v)
if (!sc->sc_rng_i--) {
sc->sc_rng_i = 4;
- add_true_randomness(sc->sc_rng_ax);
+ enqueue_randomness(sc->sc_rng_ax);
}
}