diff options
author | Mark Johnston <markj@FreeBSD.org> | 2019-05-10 04:28:17 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2019-05-10 04:28:17 +0000 |
commit | b870199522666a66e378e90ca3dbef39c30f12c6 (patch) | |
tree | af9ebf20cbc793d6efcf63eeaba4fc5035efdcdf | |
parent | 0eba88cf916d0f951410f1128db12d7737963297 (diff) |
Notes
-rw-r--r-- | sys/dev/random/ivy.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/random/ivy.c b/sys/dev/random/ivy.c index 57f3d0a1d80b..a85cc1e8996f 100644 --- a/sys/dev/random/ivy.c +++ b/sys/dev/random/ivy.c @@ -97,6 +97,13 @@ x86_rdseed_store(u_long *buf) return (retry); } +static int +x86_unimpl_store(u_long *buf __unused) +{ + + panic("%s called", __func__); +} + DEFINE_IFUNC(static, int, x86_rng_store, (u_long *buf), static) { has_rdrand = (cpu_feature2 & CPUID2_RDRAND); @@ -107,7 +114,7 @@ DEFINE_IFUNC(static, int, x86_rng_store, (u_long *buf), static) else if (has_rdrand) return (x86_rdrand_store); else - return (NULL); + return (x86_unimpl_store); } /* It is required that buf length is a multiple of sizeof(u_long). */ |