]> git.baikalelectronics.ru Git - kernel.git/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)
commit68ccbf5ee8f150bd611a5010b27a716f12ffe715
tree5a869763c331368158a34a29f02c829c1d96b827
parentf699d8ad362827264755f64e0fc74ab9245dab08
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