mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
devrandom_register() must be called before devurandom_register()
This commit is contained in:
parent
078bbe5e5c
commit
d5388eca05
10 changed files with 40 additions and 60 deletions
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue