changes for compiling interrupt_entropy.c and added -DVX69_TIMESTAMP_ENTROPY_SUPPORT in vxworks.krnl.mak (#55)
Co-authored-by: neelimap <neelimaps@neominds.in> Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/55 Co-authored-by: Neelima P S <neelima.ps@neominds.in> Co-committed-by: Neelima P S <neelima.ps@neominds.in>
This commit is contained in:
committed by
neelimap
co-authored by
neelimap
parent
f751232bee
commit
3ba5304f22
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
$COMMON=rand_unix.c rand_win.c rand_tsc.c
|
$COMMON=rand_unix.c rand_win.c rand_tsc.c
|
||||||
IF[{- $config{target} =~ /vxworks/i -}]
|
IF[{- $config{target} =~ /vxworks/i -}]
|
||||||
$COMMON=$COMMON rand_vxworks.c
|
$COMMON=$COMMON rand_vxworks.c interrupt_entropy.c
|
||||||
ENDIF
|
ENDIF
|
||||||
IF[{- $config{target} =~ /vms/i -}]
|
IF[{- $config{target} =~ /vms/i -}]
|
||||||
$COMMON=$COMMON rand_vms.c
|
$COMMON=$COMMON rand_vms.c
|
||||||
|
|||||||
-11
@@ -145,17 +145,6 @@ UINT8* collectEntropyFromInterruptJitter(void) {
|
|||||||
UINT8 *result = NULL;
|
UINT8 *result = NULL;
|
||||||
|
|
||||||
|
|
||||||
/*neelimaps*/
|
|
||||||
sysTimestampEnable();
|
|
||||||
UINT32 tick;
|
|
||||||
unsigned long freq;
|
|
||||||
|
|
||||||
/* 2. Get the timestamp value */
|
|
||||||
tick = sysTimestamp();
|
|
||||||
|
|
||||||
/* 3. Print it - Note: %u for unsigned int */
|
|
||||||
printf("sysTimestamp = %u ticks in %s\n", tick, __func__);
|
|
||||||
/*neelimaps*/
|
|
||||||
|
|
||||||
/* Allocate collector structure (in task context - OK to use malloc) */
|
/* Allocate collector structure (in task context - OK to use malloc) */
|
||||||
collector = (EntropyCollector*)malloc(sizeof(EntropyCollector));
|
collector = (EntropyCollector*)malloc(sizeof(EntropyCollector));
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ VX_CFLAGS += -mcpu=cortex-a7
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OPENSSL_CPPFLAGS = -DOPENSSL_SYS_VXWORKS_SUPPORT -DOPENSSL_NO_THREAD_POOL
|
OPENSSL_CPPFLAGS = -DOPENSSL_SYS_VXWORKS_SUPPORT -DOPENSSL_NO_THREAD_POOL -DVX69_TIMESTAMP_ENTROPY_SUPPORT
|
||||||
|
|
||||||
OPENSSL_CONFIGURE_OPTIONS = no-shared
|
OPENSSL_CONFIGURE_OPTIONS = no-shared
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user