]> 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)
commit32a748d0897223af00ae3ec19d47a91060f0d22a
tree5a869763c331368158a34a29f02c829c1d96b827
parent92467f06995344a01f56d25525b594659822fbe6
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