[PATCH 2/4] getentropy: Add cpu counter based implementation.
Christian Mauderer
christian.mauderer at embedded-brains.de
Thu Nov 9 13:23:53 UTC 2017
From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
---
c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am | 1 +
c/src/lib/libbsp/arm/atsam/Makefile.am | 1 +
c/src/lib/libbsp/arm/beagle/Makefile.am | 1 +
c/src/lib/libbsp/arm/csb336/Makefile.am | 1 +
c/src/lib/libbsp/arm/csb337/Makefile.am | 1 +
c/src/lib/libbsp/arm/edb7312/Makefile.am | 1 +
c/src/lib/libbsp/arm/gdbarmsim/Makefile.am | 1 +
c/src/lib/libbsp/arm/gumstix/Makefile.am | 1 +
c/src/lib/libbsp/arm/lm3s69xx/Makefile.am | 1 +
c/src/lib/libbsp/arm/lpc176x/Makefile.am | 1 +
c/src/lib/libbsp/arm/lpc24xx/Makefile.am | 1 +
c/src/lib/libbsp/arm/lpc32xx/Makefile.am | 1 +
c/src/lib/libbsp/arm/raspberrypi/Makefile.am | 1 +
c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am | 1 +
c/src/lib/libbsp/arm/rtl22xx/Makefile.am | 1 +
c/src/lib/libbsp/arm/smdk2410/Makefile.am | 1 +
c/src/lib/libbsp/arm/stm32f4/Makefile.am | 1 +
c/src/lib/libbsp/arm/tms570/Makefile.am | 1 +
c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am | 1 +
c/src/lib/libbsp/bfin/TLL6527M/Makefile.am | 1 +
c/src/lib/libbsp/bfin/bf537Stamp/Makefile.am | 1 +
c/src/lib/libbsp/bfin/eZKit533/Makefile.am | 1 +
c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am | 1 +
c/src/lib/libbsp/i386/pc386/Makefile.am | 1 +
c/src/lib/libbsp/lm32/lm32_evr/Makefile.am | 1 +
c/src/lib/libbsp/lm32/milkymist/Makefile.am | 1 +
c/src/lib/libbsp/m32c/m32cbsp/Makefile.am | 1 +
c/src/lib/libbsp/m68k/av5282/Makefile.am | 1 +
c/src/lib/libbsp/m68k/csb360/Makefile.am | 1 +
c/src/lib/libbsp/m68k/gen68340/Makefile.am | 1 +
c/src/lib/libbsp/m68k/gen68360/Makefile.am | 1 +
c/src/lib/libbsp/m68k/genmcf548x/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mcf52235/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mcf5225x/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mcf5235/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mcf5329/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mrm332/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mvme147/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mvme147s/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mvme162/Makefile.am | 1 +
c/src/lib/libbsp/m68k/mvme167/Makefile.am | 1 +
c/src/lib/libbsp/m68k/uC5282/Makefile.am | 1 +
c/src/lib/libbsp/mips/csb350/Makefile.am | 1 +
c/src/lib/libbsp/mips/hurricane/Makefile.am | 1 +
c/src/lib/libbsp/mips/jmr3904/Makefile.am | 1 +
c/src/lib/libbsp/mips/malta/Makefile.am | 1 +
c/src/lib/libbsp/mips/rbtx4925/Makefile.am | 1 +
c/src/lib/libbsp/mips/rbtx4938/Makefile.am | 1 +
c/src/lib/libbsp/moxie/moxiesim/Makefile.am | 1 +
c/src/lib/libbsp/nios2/nios2_iss/Makefile.am | 1 +
c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am | 1 +
c/src/lib/libbsp/or1k/generic_or1k/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/beatnik/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/gen5200/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/gen83xx/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/haleakala/Makefile.am | 1 +
.../libbsp/powerpc/motorola_powerpc/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/mvme3100/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/mvme5500/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/psim/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/qemuppc/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/qoriq/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/ss555/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/t32mppc/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/virtex/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/virtex4/Makefile.am | 1 +
c/src/lib/libbsp/powerpc/virtex5/Makefile.am | 1 +
c/src/lib/libbsp/sh/gensh1/Makefile.am | 1 +
c/src/lib/libbsp/sh/gensh2/Makefile.am | 1 +
c/src/lib/libbsp/sh/gensh4/Makefile.am | 1 +
c/src/lib/libbsp/sh/shsim/Makefile.am | 4 +-
.../libbsp/shared/getentropy-cpucounter-based.c | 46 ++++++++++++++++++++++
c/src/lib/libbsp/sparc/erc32/Makefile.am | 1 +
c/src/lib/libbsp/sparc/leon2/Makefile.am | 1 +
c/src/lib/libbsp/sparc/leon3/Makefile.am | 1 +
c/src/lib/libbsp/sparc64/niagara/Makefile.am | 1 +
c/src/lib/libbsp/sparc64/usiii/Makefile.am | 1 +
c/src/lib/libbsp/v850/gdbv850sim/Makefile.am | 1 +
82 files changed, 129 insertions(+), 1 deletion(-)
create mode 100644 c/src/lib/libbsp/shared/getentropy-cpucounter-based.c
diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am b/c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am
index 7470842206..309d188752 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/Makefile.am
@@ -151,6 +151,7 @@ libbsp_a_SOURCES += hwlib/src/hwmgr/alt_reset_manager.c
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
diff --git a/c/src/lib/libbsp/arm/atsam/Makefile.am b/c/src/lib/libbsp/arm/atsam/Makefile.am
index 5eafc42872..44b31284a3 100644
--- a/c/src/lib/libbsp/arm/atsam/Makefile.am
+++ b/c/src/lib/libbsp/arm/atsam/Makefile.am
@@ -332,6 +332,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/beagle/Makefile.am b/c/src/lib/libbsp/arm/beagle/Makefile.am
index e7c44a11fc..0df27a3d50 100644
--- a/c/src/lib/libbsp/arm/beagle/Makefile.am
+++ b/c/src/lib/libbsp/arm/beagle/Makefile.am
@@ -76,6 +76,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/src/bsp-fdt.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
diff --git a/c/src/lib/libbsp/arm/csb336/Makefile.am b/c/src/lib/libbsp/arm/csb336/Makefile.am
index 09bc3582cd..720d3405c1 100644
--- a/c/src/lib/libbsp/arm/csb336/Makefile.am
+++ b/c/src/lib/libbsp/arm/csb336/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES += \
../../shared/bspgetworkarea.c \
../../shared/bsppredriverhook.c startup/bspstart.c ../../shared/bspclean.c \
../../shared/bspreset.c startup/memmap.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
diff --git a/c/src/lib/libbsp/arm/csb337/Makefile.am b/c/src/lib/libbsp/arm/csb337/Makefile.am
index f4bcd3540c..4a8f7c3d43 100644
--- a/c/src/lib/libbsp/arm/csb337/Makefile.am
+++ b/c/src/lib/libbsp/arm/csb337/Makefile.am
@@ -56,6 +56,7 @@ libbsp_a_SOURCES = \
startup/bspstart.c \
../../shared/bspclean.c startup/bspreset.c \
startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
diff --git a/c/src/lib/libbsp/arm/edb7312/Makefile.am b/c/src/lib/libbsp/arm/edb7312/Makefile.am
index ff0fa67115..ed586c120c 100644
--- a/c/src/lib/libbsp/arm/edb7312/Makefile.am
+++ b/c/src/lib/libbsp/arm/edb7312/Makefile.am
@@ -34,6 +34,7 @@ libbsp_a_SOURCES += \
../../shared/bspgetworkarea.c \
../../shared/bsppredriverhook.c startup/bspstart.c \
../../shared/bspclean.c ../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/bspreset.c ../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
diff --git a/c/src/lib/libbsp/arm/gdbarmsim/Makefile.am b/c/src/lib/libbsp/arm/gdbarmsim/Makefile.am
index 339a87f111..e348759dd0 100644
--- a/c/src/lib/libbsp/arm/gdbarmsim/Makefile.am
+++ b/c/src/lib/libbsp/arm/gdbarmsim/Makefile.am
@@ -36,6 +36,7 @@ libbsp_a_SOURCES += \
../../shared/bspgetworkarea.c \
../../shared/bsppredriverhook.c ../../shared/bspstart.c \
../../shared/bspclean.c startup/bspreset.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c startup/syscalls.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
diff --git a/c/src/lib/libbsp/arm/gumstix/Makefile.am b/c/src/lib/libbsp/arm/gumstix/Makefile.am
index 68fb9ce7a3..0db40f2907 100644
--- a/c/src/lib/libbsp/arm/gumstix/Makefile.am
+++ b/c/src/lib/libbsp/arm/gumstix/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += \
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c \
../../shared/bspclean.c startup/bspstart.c startup/bspreset.c startup/memmap.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
diff --git a/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am b/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am
index 621a1eda38..69ffbfc8dd 100644
--- a/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/lm3s69xx/Makefile.am
@@ -61,6 +61,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/lpc176x/Makefile.am b/c/src/lib/libbsp/arm/lpc176x/Makefile.am
index d6cc64ff10..915b487bd7 100644
--- a/c/src/lib/libbsp/arm/lpc176x/Makefile.am
+++ b/c/src/lib/libbsp/arm/lpc176x/Makefile.am
@@ -90,6 +90,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/lpc24xx/Makefile.am b/c/src/lib/libbsp/arm/lpc24xx/Makefile.am
index 4f14f362ee..b14682feb1 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/lpc24xx/Makefile.am
@@ -92,6 +92,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspclean.c \
../../shared/bspgetworkarea.c \
../../shared/bsppredriverhook.c \
diff --git a/c/src/lib/libbsp/arm/lpc32xx/Makefile.am b/c/src/lib/libbsp/arm/lpc32xx/Makefile.am
index e87c6a06a8..ae17fb1074 100644
--- a/c/src/lib/libbsp/arm/lpc32xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/lpc32xx/Makefile.am
@@ -84,6 +84,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/raspberrypi/Makefile.am b/c/src/lib/libbsp/arm/raspberrypi/Makefile.am
index 14e04277cb..ad23cf0a14 100644
--- a/c/src/lib/libbsp/arm/raspberrypi/Makefile.am
+++ b/c/src/lib/libbsp/arm/raspberrypi/Makefile.am
@@ -82,6 +82,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
diff --git a/c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am b/c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am
index 6142a1f9b3..ebd9fc03a1 100644
--- a/c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am
+++ b/c/src/lib/libbsp/arm/realview-pbx-a9/Makefile.am
@@ -79,6 +79,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/rtl22xx/Makefile.am b/c/src/lib/libbsp/arm/rtl22xx/Makefile.am
index 18eaf62247..9e1b19f8e3 100644
--- a/c/src/lib/libbsp/arm/rtl22xx/Makefile.am
+++ b/c/src/lib/libbsp/arm/rtl22xx/Makefile.am
@@ -35,6 +35,7 @@ libbsp_a_SOURCES += \
../../shared/bspgetworkarea.c startup/bspstart.c \
../../shared/bspclean.c startup/bspreset.c \
../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += ../../shared/cpucounterread.c
libbsp_a_SOURCES += ../../shared/cpucounterdiff.c
diff --git a/c/src/lib/libbsp/arm/smdk2410/Makefile.am b/c/src/lib/libbsp/arm/smdk2410/Makefile.am
index 7cf25e165b..c73c9d20ad 100644
--- a/c/src/lib/libbsp/arm/smdk2410/Makefile.am
+++ b/c/src/lib/libbsp/arm/smdk2410/Makefile.am
@@ -34,6 +34,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += startup/bspreset.c
libbsp_a_SOURCES += startup/memmap.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/stm32f4/Makefile.am b/c/src/lib/libbsp/arm/stm32f4/Makefile.am
index 9634b5c514..35dc330e54 100644
--- a/c/src/lib/libbsp/arm/stm32f4/Makefile.am
+++ b/c/src/lib/libbsp/arm/stm32f4/Makefile.am
@@ -76,6 +76,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/tms570/Makefile.am b/c/src/lib/libbsp/arm/tms570/Makefile.am
index 39fc555ee2..6396654e98 100644
--- a/c/src/lib/libbsp/arm/tms570/Makefile.am
+++ b/c/src/lib/libbsp/arm/tms570/Makefile.am
@@ -118,6 +118,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
index 1f9ed5990c..a52698eda6 100644
--- a/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
+++ b/c/src/lib/libbsp/arm/xilinx-zynq/Makefile.am
@@ -76,6 +76,7 @@ libbsp_a_LIBADD =
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/bfin/TLL6527M/Makefile.am b/c/src/lib/libbsp/bfin/TLL6527M/Makefile.am
index 00afc743d4..33425bb643 100644
--- a/c/src/lib/libbsp/bfin/TLL6527M/Makefile.am
+++ b/c/src/lib/libbsp/bfin/TLL6527M/Makefile.am
@@ -30,6 +30,7 @@ libbsp_a_SOURCES = \
startup/bspstart.c \
../../shared/bspclean.c ../../shared/sbrk.c ../../shared/setvec.c \
../../shared/bootcard.c ../../shared/gnatinstallhandler.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspgetworkarea.c
libbsp_a_SOURCES += console/console.c
diff --git a/c/src/lib/libbsp/bfin/bf537Stamp/Makefile.am b/c/src/lib/libbsp/bfin/bf537Stamp/Makefile.am
index 756c2f1ef7..2b8fece882 100644
--- a/c/src/lib/libbsp/bfin/bf537Stamp/Makefile.am
+++ b/c/src/lib/libbsp/bfin/bf537Stamp/Makefile.am
@@ -30,6 +30,7 @@ libbsp_a_SOURCES += \
startup/bspstart.c \
../../shared/bspclean.c ../../shared/sbrk.c ../../shared/setvec.c \
../../shared/bootcard.c ../../shared/gnatinstallhandler.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspgetworkarea.c
libbsp_a_SOURCES += console/console.c
diff --git a/c/src/lib/libbsp/bfin/eZKit533/Makefile.am b/c/src/lib/libbsp/bfin/eZKit533/Makefile.am
index 1c680f1e1f..7714fb4b67 100644
--- a/c/src/lib/libbsp/bfin/eZKit533/Makefile.am
+++ b/c/src/lib/libbsp/bfin/eZKit533/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES += \
startup/bspstart.c \
../../shared/bspclean.c ../../shared/sbrk.c ../../shared/setvec.c \
../../shared/bootcard.c ../../shared/gnatinstallhandler.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspgetworkarea.c
libbsp_a_SOURCES += console/console-io.c
diff --git a/c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am b/c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am
index d7d55262c1..4e52af7836 100644
--- a/c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am
+++ b/c/src/lib/libbsp/epiphany/epiphany_sim/Makefile.am
@@ -56,6 +56,7 @@ libbsp_a_SOURCES += ../../shared/bspstart.c
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/i386/pc386/Makefile.am b/c/src/lib/libbsp/i386/pc386/Makefile.am
index cc1a7f67cb..ec1f5068a0 100644
--- a/c/src/lib/libbsp/i386/pc386/Makefile.am
+++ b/c/src/lib/libbsp/i386/pc386/Makefile.am
@@ -156,6 +156,7 @@ libbsp_a_SOURCES += ../../i386/shared/irq/irq.c
libbsp_a_SOURCES += ../../i386/shared/irq/irq_init.c
libbsp_a_SOURCES += ../../i386/shared/irq/elcr.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/ldsegs.S
libbsp_a_SOURCES += ../../i386/shared/irq/irq_asm.S
diff --git a/c/src/lib/libbsp/lm32/lm32_evr/Makefile.am b/c/src/lib/libbsp/lm32/lm32_evr/Makefile.am
index d8a03de17c..d6224c85b6 100644
--- a/c/src/lib/libbsp/lm32/lm32_evr/Makefile.am
+++ b/c/src/lib/libbsp/lm32/lm32_evr/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../shared/startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += ../../shared/setvec.c
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/lm32/milkymist/Makefile.am b/c/src/lib/libbsp/lm32/milkymist/Makefile.am
index bab2a7f3ea..3b71e80957 100644
--- a/c/src/lib/libbsp/lm32/milkymist/Makefile.am
+++ b/c/src/lib/libbsp/lm32/milkymist/Makefile.am
@@ -49,6 +49,7 @@ libbsp_a_SOURCES += startup/bspclean.c
libbsp_a_SOURCES += ../shared/startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/m32c/m32cbsp/Makefile.am b/c/src/lib/libbsp/m32c/m32cbsp/Makefile.am
index dd38e9784a..dc85ee2885 100644
--- a/c/src/lib/libbsp/m32c/m32cbsp/Makefile.am
+++ b/c/src/lib/libbsp/m32c/m32cbsp/Makefile.am
@@ -29,6 +29,7 @@ startup_SOURCES = ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
startup/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c startup/crtn.S
clock_SOURCES = ../../shared/clock_driver_simidle.c
console_SOURCES = ../../shared/console-polled.c console/console-io.c \
diff --git a/c/src/lib/libbsp/m68k/av5282/Makefile.am b/c/src/lib/libbsp/m68k/av5282/Makefile.am
index 2e7418c418..9242bf0834 100644
--- a/c/src/lib/libbsp/m68k/av5282/Makefile.am
+++ b/c/src/lib/libbsp/m68k/av5282/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
startup/init5282.c startup/bspstart.c \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# clock
diff --git a/c/src/lib/libbsp/m68k/csb360/Makefile.am b/c/src/lib/libbsp/m68k/csb360/Makefile.am
index 2271b53d83..ac84b81f89 100644
--- a/c/src/lib/libbsp/m68k/csb360/Makefile.am
+++ b/c/src/lib/libbsp/m68k/csb360/Makefile.am
@@ -32,6 +32,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
../../shared/bspstart.c startup/init5272.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# console
diff --git a/c/src/lib/libbsp/m68k/gen68340/Makefile.am b/c/src/lib/libbsp/m68k/gen68340/Makefile.am
index 7130692fd7..4fc351fa16 100644
--- a/c/src/lib/libbsp/m68k/gen68340/Makefile.am
+++ b/c/src/lib/libbsp/m68k/gen68340/Makefile.am
@@ -35,6 +35,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
../../shared/bspstart.c startup/init68340.c \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
startup/dumpanic.c ../../shared/gnatinstallhandler.c
# clock
diff --git a/c/src/lib/libbsp/m68k/gen68360/Makefile.am b/c/src/lib/libbsp/m68k/gen68360/Makefile.am
index e81a29f5c8..2590279c71 100644
--- a/c/src/lib/libbsp/m68k/gen68360/Makefile.am
+++ b/c/src/lib/libbsp/m68k/gen68360/Makefile.am
@@ -30,6 +30,7 @@ libbsp_a_SOURCES += startup/alloc360.c ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c ../../shared/bspstart.c \
startup/init68360.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# clock
diff --git a/c/src/lib/libbsp/m68k/genmcf548x/Makefile.am b/c/src/lib/libbsp/m68k/genmcf548x/Makefile.am
index e9e1f40e4f..8fab6d49ae 100644
--- a/c/src/lib/libbsp/m68k/genmcf548x/Makefile.am
+++ b/c/src/lib/libbsp/m68k/genmcf548x/Makefile.am
@@ -41,6 +41,7 @@ libbsp_a_SOURCES += \
../../shared/bspreset_loop.c \
../../shared/bsppredriverhook.c startup/init548x.c startup/bspstart.c \
../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c
# clock
libbsp_a_SOURCES += clock/clock.c ../../../shared/clockdrv_shell.h
diff --git a/c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am b/c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am
index 2ca635ba8b..a5a2128417 100644
--- a/c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mcf5206elite/Makefile.am
@@ -37,6 +37,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
../../shared/bspstart.c startup/init5206e.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# console
diff --git a/c/src/lib/libbsp/m68k/mcf52235/Makefile.am b/c/src/lib/libbsp/m68k/mcf52235/Makefile.am
index ec373d77ee..e1e1368b81 100644
--- a/c/src/lib/libbsp/m68k/mcf52235/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mcf52235/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
startup/init52235.c ../../shared/bspstart.c startup/cfinit.c \
startup/bspgetcpuclockspeed.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# clock
diff --git a/c/src/lib/libbsp/m68k/mcf5225x/Makefile.am b/c/src/lib/libbsp/m68k/mcf5225x/Makefile.am
index 5106369391..130971d3ce 100644
--- a/c/src/lib/libbsp/m68k/mcf5225x/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mcf5225x/Makefile.am
@@ -30,6 +30,7 @@ libbsp_a_SOURCES = \
../../shared/bspgetworkarea.c \
startup/init5225x.c startup/bspstart.c \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += clock/clock.c
diff --git a/c/src/lib/libbsp/m68k/mcf5235/Makefile.am b/c/src/lib/libbsp/m68k/mcf5235/Makefile.am
index 6b06f89b00..1eab80eba7 100644
--- a/c/src/lib/libbsp/m68k/mcf5235/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mcf5235/Makefile.am
@@ -32,6 +32,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
startup/bspgetcpuclockspeed.c \
../../shared/bspgetworkarea.c startup/init5235.c startup/bspstart.c \
../../shared/bootcard.c ../../shared/sbrk.c ../../shared/setvec.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c \
startup/copyvectors.c
# clock
diff --git a/c/src/lib/libbsp/m68k/mcf5329/Makefile.am b/c/src/lib/libbsp/m68k/mcf5329/Makefile.am
index 496d322637..dc5493655e 100644
--- a/c/src/lib/libbsp/m68k/mcf5329/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mcf5329/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
startup/init5329.c startup/bspstart.c startup/cfinit.c\
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# clock
diff --git a/c/src/lib/libbsp/m68k/mrm332/Makefile.am b/c/src/lib/libbsp/m68k/mrm332/Makefile.am
index 3d43fcaefe..bfae981bf0 100644
--- a/c/src/lib/libbsp/m68k/mrm332/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mrm332/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += startup/start_c.c \
../../shared/bspstart.c startup/bsppredriverhook.c \
../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspclean.c \
../../shared/setvec.c \
../../shared/bspgetworkarea.c ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/m68k/mvme147/Makefile.am b/c/src/lib/libbsp/m68k/mvme147/Makefile.am
index 18e0c79f5f..5623a7a832 100644
--- a/c/src/lib/libbsp/m68k/mvme147/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mvme147/Makefile.am
@@ -32,6 +32,7 @@ libbsp_a_SOURCES =
# startup
libbsp_a_SOURCES += startup/bspclean.c \
startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c ../../shared/sbrk.c \
../../shared/setvec.c ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/m68k/mvme147s/Makefile.am b/c/src/lib/libbsp/m68k/mvme147s/Makefile.am
index 4da9f823f1..8b536f94ea 100644
--- a/c/src/lib/libbsp/m68k/mvme147s/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mvme147s/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/setvec.c \
../../shared/bspgetworkarea.c ../../shared/setvec.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/m68k/mvme162/Makefile.am b/c/src/lib/libbsp/m68k/mvme162/Makefile.am
index 62490a5aa6..8d8f73105c 100644
--- a/c/src/lib/libbsp/m68k/mvme162/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mvme162/Makefile.am
@@ -36,6 +36,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += startup/bspclean.c \
../../shared/bsppredriverhook.c \
startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/page_table.c \
../../shared/bspgetworkarea.c startup/page_table.c \
../../shared/sbrk.c ../../shared/setvec.c \
diff --git a/c/src/lib/libbsp/m68k/mvme167/Makefile.am b/c/src/lib/libbsp/m68k/mvme167/Makefile.am
index 56fefe9235..baa8f1d537 100644
--- a/c/src/lib/libbsp/m68k/mvme167/Makefile.am
+++ b/c/src/lib/libbsp/m68k/mvme167/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES += startup/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/page_table.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/m68k/uC5282/Makefile.am b/c/src/lib/libbsp/m68k/uC5282/Makefile.am
index 530cdcbc08..4bc58872e5 100644
--- a/c/src/lib/libbsp/m68k/uC5282/Makefile.am
+++ b/c/src/lib/libbsp/m68k/uC5282/Makefile.am
@@ -30,6 +30,7 @@ libbsp_a_SOURCES += startup/bspclean.c startup/bspreset.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
startup/init5282.c startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/setvec.c \
../../shared/gnatinstallhandler.c
# clock
diff --git a/c/src/lib/libbsp/mips/csb350/Makefile.am b/c/src/lib/libbsp/mips/csb350/Makefile.am
index 4296a45979..81a15a5fb0 100644
--- a/c/src/lib/libbsp/mips/csb350/Makefile.am
+++ b/c/src/lib/libbsp/mips/csb350/Makefile.am
@@ -38,6 +38,7 @@ libbsp_a_SOURCES += startup/bspreset.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
# clock
libbsp_a_SOURCES += clock/clockdrv.c
diff --git a/c/src/lib/libbsp/mips/hurricane/Makefile.am b/c/src/lib/libbsp/mips/hurricane/Makefile.am
index 7dfdc1561c..13084995e8 100644
--- a/c/src/lib/libbsp/mips/hurricane/Makefile.am
+++ b/c/src/lib/libbsp/mips/hurricane/Makefile.am
@@ -36,6 +36,7 @@ libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/inittlb.c
libbsp_a_SOURCES += ../shared/startup/idtmem.S
diff --git a/c/src/lib/libbsp/mips/jmr3904/Makefile.am b/c/src/lib/libbsp/mips/jmr3904/Makefile.am
index e0b68ca0c8..b895e7753c 100644
--- a/c/src/lib/libbsp/mips/jmr3904/Makefile.am
+++ b/c/src/lib/libbsp/mips/jmr3904/Makefile.am
@@ -36,6 +36,7 @@ libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
# clock
libbsp_a_SOURCES += clock/clockdrv.c
diff --git a/c/src/lib/libbsp/mips/malta/Makefile.am b/c/src/lib/libbsp/mips/malta/Makefile.am
index 5d4b5f5fe3..c2cd348409 100644
--- a/c/src/lib/libbsp/mips/malta/Makefile.am
+++ b/c/src/lib/libbsp/mips/malta/Makefile.am
@@ -43,6 +43,7 @@ libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += startup/bspreset.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/inittlb.c
libbsp_a_SOURCES += ../shared/startup/idttlb.S
diff --git a/c/src/lib/libbsp/mips/rbtx4925/Makefile.am b/c/src/lib/libbsp/mips/rbtx4925/Makefile.am
index 5c0b08b640..2a5b61140c 100644
--- a/c/src/lib/libbsp/mips/rbtx4925/Makefile.am
+++ b/c/src/lib/libbsp/mips/rbtx4925/Makefile.am
@@ -37,6 +37,7 @@ libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/inittlb.c
libbsp_a_SOURCES += ../shared/startup/idttlb.S
diff --git a/c/src/lib/libbsp/mips/rbtx4938/Makefile.am b/c/src/lib/libbsp/mips/rbtx4938/Makefile.am
index 5c0b08b640..2a5b61140c 100644
--- a/c/src/lib/libbsp/mips/rbtx4938/Makefile.am
+++ b/c/src/lib/libbsp/mips/rbtx4938/Makefile.am
@@ -37,6 +37,7 @@ libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/inittlb.c
libbsp_a_SOURCES += ../shared/startup/idttlb.S
diff --git a/c/src/lib/libbsp/moxie/moxiesim/Makefile.am b/c/src/lib/libbsp/moxie/moxiesim/Makefile.am
index 9d7051053b..fc39317ce0 100644
--- a/c/src/lib/libbsp/moxie/moxiesim/Makefile.am
+++ b/c/src/lib/libbsp/moxie/moxiesim/Makefile.am
@@ -34,6 +34,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
../../shared/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c
# clock
libbsp_a_SOURCES += ../../shared/clock_driver_simidle.c
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/Makefile.am b/c/src/lib/libbsp/nios2/nios2_iss/Makefile.am
index a619bd224e..c5c9a04216 100644
--- a/c/src/lib/libbsp/nios2/nios2_iss/Makefile.am
+++ b/c/src/lib/libbsp/nios2/nios2_iss/Makefile.am
@@ -34,6 +34,7 @@ libbsp_a_SOURCES += ../../shared/bspreset_loop.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/setvec.c
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am b/c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am
index 74ab358196..ba5c14849f 100644
--- a/c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am
+++ b/c/src/lib/libbsp/no_cpu/no_bsp/Makefile.am
@@ -27,6 +27,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/startup/bspgetworkarea.c \
startup/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/setvec.c ../../shared/gnatinstallhandler.c
# clock
libbsp_a_SOURCES += clock/ckinit.c
diff --git a/c/src/lib/libbsp/or1k/generic_or1k/Makefile.am b/c/src/lib/libbsp/or1k/generic_or1k/Makefile.am
index ac50a2d74e..0a8f126c04 100644
--- a/c/src/lib/libbsp/or1k/generic_or1k/Makefile.am
+++ b/c/src/lib/libbsp/or1k/generic_or1k/Makefile.am
@@ -66,6 +66,7 @@ libbsp_a_SOURCES += startup/bspstart.c
# Shared
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/powerpc/beatnik/Makefile.am b/c/src/lib/libbsp/powerpc/beatnik/Makefile.am
index 83bc96e52d..7c493f879e 100644
--- a/c/src/lib/libbsp/powerpc/beatnik/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/beatnik/Makefile.am
@@ -66,6 +66,7 @@ libbsp_a_SOURCES += startup/bspstart.c \
../../powerpc/shared/startup/pgtbl_setup.c \
../../powerpc/shared/startup/pgtbl_activate.c \
../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/bspclean.c \
../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/powerpc/gen5200/Makefile.am b/c/src/lib/libbsp/powerpc/gen5200/Makefile.am
index c6afc9990b..7ca92bbcd6 100644
--- a/c/src/lib/libbsp/powerpc/gen5200/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/gen5200/Makefile.am
@@ -130,6 +130,7 @@ libbsp_a_SOURCES += tod/todcfg.c tod/pcf8563.c tod/pcf8563.h \
# startup
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
index f8dd80c3d2..c2bc60ba0e 100644
--- a/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/gen83xx/Makefile.am
@@ -53,6 +53,7 @@ libbsp_a_SOURCES =
# startup
libbsp_a_SOURCES += \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bsppredriverhook.c \
../../shared/sbrk.c \
../../shared/gnatinstallhandler.c \
diff --git a/c/src/lib/libbsp/powerpc/haleakala/Makefile.am b/c/src/lib/libbsp/powerpc/haleakala/Makefile.am
index b121b08e37..aa98279e67 100644
--- a/c/src/lib/libbsp/powerpc/haleakala/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/haleakala/Makefile.am
@@ -29,6 +29,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bspreset_loop.c \
startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
../../shared/sbrk.c \
../../shared/gnatinstallhandler.c mmu/mmu_405.c mmu/mmu_405asm.S
diff --git a/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am b/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
index af7a71f723..b90621d412 100644
--- a/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/motorola_powerpc/Makefile.am
@@ -49,6 +49,7 @@ libbsp_a_SOURCES += ../../powerpc/shared/startup/bspstart.c \
../../powerpc/shared/startup/pgtbl_activate.c \
../../powerpc/shared/startup/ppc_idle.c \
../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspclean.c \
../../shared/gnatinstallhandler.c \
startup/bspreset.c
diff --git a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
index 7a0f5843c7..a68a5d47af 100644
--- a/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mpc55xxevb/Makefile.am
@@ -63,6 +63,7 @@ include_bsp_HEADERS += include/console-linflex.h
# startup
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/bspclean.c
libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/src/stackalloc.c
diff --git a/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am b/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am
index f2f6f154b7..0669018594 100644
--- a/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mpc8260ads/Makefile.am
@@ -52,6 +52,7 @@ libbsp_a_SOURCES += irq/irq.c
libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../shared/startup/bspidle.c startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c startup/cpuinit.c \
../../shared/bspgetworkarea.c
diff --git a/c/src/lib/libbsp/powerpc/mvme3100/Makefile.am b/c/src/lib/libbsp/powerpc/mvme3100/Makefile.am
index c9573ea1b4..0d3335652c 100644
--- a/c/src/lib/libbsp/powerpc/mvme3100/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mvme3100/Makefile.am
@@ -54,6 +54,7 @@ libbsp_a_SOURCES += startup/bspstart.c \
../../powerpc/shared/startup/bsppredriverhook.c \
../../powerpc/shared/startup/zerobss.c \
../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspclean.c \
../../shared/gnatinstallhandler.c
# tod
diff --git a/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am b/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
index 8794f5fdb2..db235cbe20 100644
--- a/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/mvme5500/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES += startup/bspstart.c \
../../powerpc/shared/startup/zerobss.c \
../../powerpc/shared/startup/bspgetworkarea.c \
../../powerpc/shared/startup/sbrk.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/bspclean.c \
../../shared/gnatinstallhandler.c startup/bspreset.c \
../../powerpc/shared/startup/probeMemEnd.c
diff --git a/c/src/lib/libbsp/powerpc/psim/Makefile.am b/c/src/lib/libbsp/powerpc/psim/Makefile.am
index a66cf42feb..9a234431e6 100644
--- a/c/src/lib/libbsp/powerpc/psim/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/psim/Makefile.am
@@ -36,6 +36,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c startup/bspstart.c \
../../shared/bspgetworkarea.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../powerpc/shared/startup/sbrk.c ../../shared/gnatinstallhandler.c
# pclock
diff --git a/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am b/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am
index 8c0d1186f5..727376ca6a 100644
--- a/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/qemuppc/Makefile.am
@@ -32,6 +32,7 @@ startup_SOURCES = ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../../shared/bspgetworkarea.c \
../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c \
startup/cmain.c startup/bspstart.c startup/bsppanic.c
# pclock
diff --git a/c/src/lib/libbsp/powerpc/qoriq/Makefile.am b/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
index b2c778bb07..65bbbbd717 100644
--- a/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/qoriq/Makefile.am
@@ -65,6 +65,7 @@ libbsp_a_SOURCES =
# Startup
libbsp_a_SOURCES += \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c \
../../shared/gnatinstallhandler.c \
../../shared/bspclean.c \
diff --git a/c/src/lib/libbsp/powerpc/ss555/Makefile.am b/c/src/lib/libbsp/powerpc/ss555/Makefile.am
index 61f615e131..15406f97fb 100644
--- a/c/src/lib/libbsp/powerpc/ss555/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/ss555/Makefile.am
@@ -36,6 +36,7 @@ libbsp_a_SOURCES += console/console.c
libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
startup/bspstart.c ../../shared/bootcard.c startup/iss555.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c start/start.S \
../../shared/bspgetworkarea.c
# tm27supp
diff --git a/c/src/lib/libbsp/powerpc/t32mppc/Makefile.am b/c/src/lib/libbsp/powerpc/t32mppc/Makefile.am
index e37b740eed..6289c62ad8 100644
--- a/c/src/lib/libbsp/powerpc/t32mppc/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/t32mppc/Makefile.am
@@ -44,6 +44,7 @@ libbsp_a_SOURCES =
# Startup
libbsp_a_SOURCES += \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bsppredriverhook.c \
../../shared/sbrk.c \
../../shared/gnatinstallhandler.c \
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am b/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
index 29044518cf..e334f92749 100644
--- a/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/tqm8xx/Makefile.am
@@ -62,6 +62,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c \
../../shared/bsppredriverhook.c \
../shared/startup/bspidle.c \
startup/bspstart.c startup/bspgetworkarea.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/mmutlbtab.c startup/cpuinit.c ../../shared/sbrk.c \
../../shared/gnatinstallhandler.c
diff --git a/c/src/lib/libbsp/powerpc/virtex/Makefile.am b/c/src/lib/libbsp/powerpc/virtex/Makefile.am
index e355e9eeeb..878a6584fa 100644
--- a/c/src/lib/libbsp/powerpc/virtex/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/virtex/Makefile.am
@@ -45,6 +45,7 @@ libbsp_a_LIBADD =
libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bspgetworkarea.c \
../../shared/bspreset_loop.c \
startup/bspstart.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bsppredriverhook.c \
../../shared/sbrk.c ../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += ../shared/src/bsp-start-zero.S
diff --git a/c/src/lib/libbsp/powerpc/virtex4/Makefile.am b/c/src/lib/libbsp/powerpc/virtex4/Makefile.am
index 4b996e041f..fc4ae0ecd7 100644
--- a/c/src/lib/libbsp/powerpc/virtex4/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/virtex4/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES = startup/bspclean.c \
../../shared/bspgetworkarea.c \
startup/bspstart.c \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c \
../../shared/gnatinstallhandler.c \
../shared/src/memcpy.c
diff --git a/c/src/lib/libbsp/powerpc/virtex5/Makefile.am b/c/src/lib/libbsp/powerpc/virtex5/Makefile.am
index eaa7e22a72..866aa5e381 100644
--- a/c/src/lib/libbsp/powerpc/virtex5/Makefile.am
+++ b/c/src/lib/libbsp/powerpc/virtex5/Makefile.am
@@ -32,6 +32,7 @@ libbsp_a_SOURCES = startup/bspclean.c \
../../shared/bspgetworkarea.c \
startup/bspstart.c \
../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/sbrk.c \
../../shared/gnatinstallhandler.c \
../shared/src/memcpy.c
diff --git a/c/src/lib/libbsp/sh/gensh1/Makefile.am b/c/src/lib/libbsp/sh/gensh1/Makefile.am
index 1fd30f8f4a..44581c0154 100644
--- a/c/src/lib/libbsp/sh/gensh1/Makefile.am
+++ b/c/src/lib/libbsp/sh/gensh1/Makefile.am
@@ -37,6 +37,7 @@ libbsp_a_SOURCES += \
../../shared/bspclean.c ../../shared/bspreset_loop.c \
../../shared/bspgetworkarea.c \
../../shared/sbrk.c ../../shared/bootcard.c ../shared/bsphwinit.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c
# scitab
libbsp_a_SOURCES += scitab.c
diff --git a/c/src/lib/libbsp/sh/gensh2/Makefile.am b/c/src/lib/libbsp/sh/gensh2/Makefile.am
index ba58a211cd..76105614b6 100644
--- a/c/src/lib/libbsp/sh/gensh2/Makefile.am
+++ b/c/src/lib/libbsp/sh/gensh2/Makefile.am
@@ -38,6 +38,7 @@ libbsp_a_SOURCES += startup/hw_init.c \
../../shared/bsppredriverhook.c \
../shared/startup/bspstart.c \
../../shared/bspgetworkarea.c ../../shared/sbrk.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c ../../shared/bspclean.c \
../shared/bsphwinit.c
# scitab
diff --git a/c/src/lib/libbsp/sh/gensh4/Makefile.am b/c/src/lib/libbsp/sh/gensh4/Makefile.am
index 995c149004..ff457869b6 100644
--- a/c/src/lib/libbsp/sh/gensh4/Makefile.am
+++ b/c/src/lib/libbsp/sh/gensh4/Makefile.am
@@ -31,6 +31,7 @@ libbsp_a_SOURCES += \
../../shared/bsppredriverhook.c ../shared/startup/bspstart.c \
../../shared/bspgetworkarea.c \
../../shared/bspclean.c ../../shared/sbrk.c ../../shared/bootcard.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/gnatinstallhandler.c ../shared/bsphwinit.c
# console
libbsp_a_SOURCES += console/console.c ../../shared/dummy_printk_support.c
diff --git a/c/src/lib/libbsp/sh/shsim/Makefile.am b/c/src/lib/libbsp/sh/shsim/Makefile.am
index fc0d77a459..e45bb75778 100644
--- a/c/src/lib/libbsp/sh/shsim/Makefile.am
+++ b/c/src/lib/libbsp/sh/shsim/Makefile.am
@@ -32,7 +32,9 @@ libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../shared/startup/bspstart.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bspclean.c
-libbsp_a_SOURCES += ../../shared/sbrk.c ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/sbrk.c
+libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += ../shared/bsphwinit.c
libbsp_a_SOURCES += startup/sysexit.c
diff --git a/c/src/lib/libbsp/shared/getentropy-cpucounter-based.c b/c/src/lib/libbsp/shared/getentropy-cpucounter-based.c
new file mode 100644
index 0000000000..137fdfbb6c
--- /dev/null
+++ b/c/src/lib/libbsp/shared/getentropy-cpucounter-based.c
@@ -0,0 +1,46 @@
+/*
+ * Copyright (c) 2017 embedded brains GmbH. All rights reserved.
+ *
+ * embedded brains GmbH
+ * Dornierstr. 4
+ * 82178 Puchheim
+ * Germany
+ * <rtems at 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 <unistd.h>
+#include <string.h>
+#include <rtems/sysinit.h>
+#include <rtems/counter.h>
+
+int getentropy(void *ptr, size_t n)
+{
+ uint8_t *dest = ptr;
+
+ while (n > 0) {
+ rtems_counter_ticks ticks;
+
+ ticks = rtems_counter_read();
+
+ if (n >= sizeof(ticks)) {
+ memcpy(dest, &ticks, sizeof(ticks));
+ n -= sizeof(ticks);
+ dest += sizeof(ticks);
+ } else {
+ /*
+ * Fill the remaining bytes with only the least
+ * significant byte of the time. That is the byte with
+ * the most changes.
+ */
+ *dest = ticks & 0xFF;
+ --n;
+ ++dest;
+ }
+ }
+
+ return 0;
+}
diff --git a/c/src/lib/libbsp/sparc/erc32/Makefile.am b/c/src/lib/libbsp/sparc/erc32/Makefile.am
index 3c15887d46..994402a540 100644
--- a/c/src/lib/libbsp/sparc/erc32/Makefile.am
+++ b/c/src/lib/libbsp/sparc/erc32/Makefile.am
@@ -33,6 +33,7 @@ libbsp_a_SOURCES += startup/bsppredriver.c
libbsp_a_SOURCES += ../../sparc/shared/startup/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/setvec.c
libbsp_a_SOURCES += startup/spurious.c
diff --git a/c/src/lib/libbsp/sparc/leon2/Makefile.am b/c/src/lib/libbsp/sparc/leon2/Makefile.am
index 8ec7306ebc..9309dfa3cc 100644
--- a/c/src/lib/libbsp/sparc/leon2/Makefile.am
+++ b/c/src/lib/libbsp/sparc/leon2/Makefile.am
@@ -37,6 +37,7 @@ libbsp_a_SOURCES += startup/bsppredriver.c
libbsp_a_SOURCES += startup/bspstart.c
libbsp_a_SOURCES += ../../sparc/shared/startup/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += startup/setvec.c
libbsp_a_SOURCES += startup/spurious.c
diff --git a/c/src/lib/libbsp/sparc/leon3/Makefile.am b/c/src/lib/libbsp/sparc/leon3/Makefile.am
index 5e83f1382d..62550b279b 100644
--- a/c/src/lib/libbsp/sparc/leon3/Makefile.am
+++ b/c/src/lib/libbsp/sparc/leon3/Makefile.am
@@ -38,6 +38,7 @@ libbsp_a_SOURCES =
libbsp_a_SOURCES += startup/bspclean.c
libbsp_a_SOURCES += \
../../shared/bootcard.c startup/bspstart.c \
+ ../../shared/getentropy-cpucounter-based.c \
startup/bsppredriver.c \
../../sparc/shared/startup/bspgetworkarea.c ../../shared/sbrk.c \
startup/setvec.c \
diff --git a/c/src/lib/libbsp/sparc64/niagara/Makefile.am b/c/src/lib/libbsp/sparc64/niagara/Makefile.am
index 9f3c2e8352..4f61e5752e 100644
--- a/c/src/lib/libbsp/sparc64/niagara/Makefile.am
+++ b/c/src/lib/libbsp/sparc64/niagara/Makefile.am
@@ -41,6 +41,7 @@ dist_project_lib_DATA += ../shared/startup/linkcmds
startup_SOURCES = startup/bspclean.c startup/m5op_sparc.S \
../../shared/bsppredriverhook.c \
../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspgetworkarea.c \
../../shared/bspstart.c \
../shared/startup/setvec.c \
diff --git a/c/src/lib/libbsp/sparc64/usiii/Makefile.am b/c/src/lib/libbsp/sparc64/usiii/Makefile.am
index 709252dc78..ca77bbf29b 100644
--- a/c/src/lib/libbsp/sparc64/usiii/Makefile.am
+++ b/c/src/lib/libbsp/sparc64/usiii/Makefile.am
@@ -87,6 +87,7 @@ dist_project_lib_DATA += ../shared/startup/linkcmds
startup_SOURCES = ../../shared/bspclean.c \
../../shared/bspstart.c \
../../shared/bootcard.c ../../shared/sbrk.c \
+ ../../shared/getentropy-cpucounter-based.c \
../../shared/bspgetworkarea.c \
../../shared/bsppredriverhook.c \
../shared/startup/setvec.c \
diff --git a/c/src/lib/libbsp/v850/gdbv850sim/Makefile.am b/c/src/lib/libbsp/v850/gdbv850sim/Makefile.am
index a54a787ddb..3a083d00b1 100644
--- a/c/src/lib/libbsp/v850/gdbv850sim/Makefile.am
+++ b/c/src/lib/libbsp/v850/gdbv850sim/Makefile.am
@@ -34,6 +34,7 @@ libbsp_a_SOURCES += ../../shared/bsppredriverhook.c
libbsp_a_SOURCES += ../../shared/bspgetworkarea.c
libbsp_a_SOURCES += ../../shared/bspstart.c
libbsp_a_SOURCES += ../../shared/bootcard.c
+libbsp_a_SOURCES += ../../shared/getentropy-cpucounter-based.c
libbsp_a_SOURCES += ../../shared/sbrk.c
libbsp_a_SOURCES += ../../shared/gnatinstallhandler.c
libbsp_a_SOURCES += startup/bspreset.c
--
2.12.3
More information about the devel
mailing list