summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/arc4random_getentropy_fail.c
diff options
context:
space:
mode:
authorChristian Mauderer <Christian.Mauderer@embedded-brains.de>2017-11-13 09:21:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2017-11-17 07:26:41 +0100
commitddc339c51fa436e91eba083029bec3849997899e (patch)
treea44b0ac3edccfcc8a038f8d9d33cee8bf35f9ad9 /cpukit/libcsupport/src/arc4random_getentropy_fail.c
parentscore: Adjust _Scheduler_EDF_SMP_Insert_ready() (diff)
downloadrtems-ddc339c51fa436e91eba083029bec3849997899e.tar.bz2
cpukit: Add _arc4random_getentropy_fail.
Add a default implementation of _arc4random_getentropy_fail with an internal error. Update #3239.
Diffstat (limited to 'cpukit/libcsupport/src/arc4random_getentropy_fail.c')
-rw-r--r--cpukit/libcsupport/src/arc4random_getentropy_fail.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/arc4random_getentropy_fail.c b/cpukit/libcsupport/src/arc4random_getentropy_fail.c
new file mode 100644
index 0000000000..88aa1ca328
--- /dev/null
+++ b/cpukit/libcsupport/src/arc4random_getentropy_fail.c
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2017 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems@embedded-brains.de>
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.org/license/LICENSE.
+ */
+
+#include <machine/_arc4random.h>
+#include <rtems/score/interr.h>
+
+void _arc4random_getentropy_fail( void )
+{
+ _Internal_error( INTERNAL_ERROR_ARC4RANDOM_GETENTROPY_FAIL );
+}