]> git.itanic.dy.fi Git - linux-stable/commit
mips: allow firmware to pass RNG seed to kernel
authorJason A. Donenfeld <Jason@zx2c4.com>
Fri, 30 Sep 2022 14:01:38 +0000 (16:01 +0200)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Sat, 1 Oct 2022 16:06:43 +0000 (18:06 +0200)
commit056a68cea01edfa78b3474af1bfa39cc6bcc7bee
tree5a869763c331368158a34a29f02c829c1d96b827
parent8e6ec6ce02b5a58f01099118ddfed71d3f657b1c
mips: allow firmware to pass RNG seed to kernel

Nearly all other firmware environments have some way of passing a RNG
seed to initialize the RNG: DTB's rng-seed, EFI's RNG protocol, m68k's
bootinfo block, x86's setup_data, and so forth. This adds something
similar for MIPS, which will allow various firmware environments,
bootloaders, and hypervisors to pass an RNG seed to initialize the
kernel's RNG.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/setup.c