devrandom_register() must be called before devurandom_register()

This commit is contained in:
Gregory Nutt 2016-07-18 11:24:04 -06:00
parent 078bbe5e5c
commit d5388eca05
10 changed files with 40 additions and 60 deletions

View file

@ -198,6 +198,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -257,12 +261,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -239,6 +239,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -298,12 +302,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -165,6 +165,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -224,12 +228,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -167,6 +167,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -226,12 +230,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -141,6 +141,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -169,12 +173,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
/* Enable interrupt */
local_irq_enable();

View file

@ -156,6 +156,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -218,12 +222,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -153,6 +153,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -208,12 +212,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#if defined(CONFIG_FS_FAT) && !defined(CONFIG_DISABLE_MOUNTPOINT)
up_registerblockdevice(); /* Our FAT ramdisk at /dev/ram0 */
#endif

View file

@ -167,6 +167,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -226,12 +230,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -167,6 +167,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -226,12 +230,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */

View file

@ -164,6 +164,10 @@ void up_initialize(void)
devnull_register(); /* Standard /dev/null */
#endif
#if defined(CONFIG_DEV_RANDOM)
devrandom_register(); /* Standard /dev/random */
#endif
#if defined(CONFIG_DEV_URANDOM)
devurandom_register(); /* Standard /dev/urandom */
#endif
@ -223,12 +227,6 @@ void up_initialize(void)
devcrypto_register();
#endif
#ifdef CONFIG_DEV_RANDOM
/* Initialize the Random Number Generator (RNG) */
devrandom_register();
#endif
#ifndef CONFIG_NETDEV_LATEINIT
/* Initialize the network */