Skip to content

Commit

Permalink
Cosmetic Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akashkollipara committed Jan 1, 2024
1 parent fc0ca77 commit 22922b1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/arch/avr/8/common_5x_6/terravisor/arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,6 @@ void arch_signal_resume(void)
*/
void arch_rseed_capture()
{
extern uintptr_t *_bss_start;
srand(*_bss_start);
extern uintptr_t *_bss_start;
srand(*_bss_start);
}
2 changes: 1 addition & 1 deletion src/arch/avr/8/common_5x_6/terravisor/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void _NAKED init()
/* Set resisters to architecturally defined reset */
zero_reg();
/* Capture unique seed value before memory initialization */
arch_rseed_capture();
arch_rseed_capture();
/* Boot framework */
engine();

Expand Down
4 changes: 2 additions & 2 deletions src/arch/riscv/32/i/terravisor/arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,6 @@ _WEAK void arch_unhandled_irq()
*/
void arch_rseed_capture()
{
extern uintptr_t *_bss_start;
srand(*_bss_start);
extern uintptr_t *_bss_start;
srand(*_bss_start);
}
4 changes: 2 additions & 2 deletions src/arch/riscv/32/i/terravisor/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ void _NAKED init()
arch_di();
asm volatile("la tp, _tls_start");
#if USE_PRNG
/* Capture unique seed value before memory initialization */
arch_rseed_capture();
/* Capture unique seed value before memory initialization */
arch_rseed_capture();
#endif
/* Boot framework */
#if CCSMP == 0
Expand Down
2 changes: 1 addition & 1 deletion src/platform/mega_avr/common/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ void platform_early_setup()
ret |= platform_bss_clear();
ret |= platform_init_heap();
ret |= platform_resources_setup();
srand(temp_randomnumber);
srand(temp_randomnumber);
/* Setup memory syslogger */
driver_setup("mslog");

Expand Down
2 changes: 1 addition & 1 deletion src/platform/sifive/common_fe310/platform/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ void platform_early_setup()
{
status_t ret = success;
#if USE_PRNG
unsigned int temp_randomnumber = rand();
unsigned int temp_randomnumber = rand();
#endif
ret |= platform_copy_data();
ret |= platform_copy_itim();
Expand Down

0 comments on commit 22922b1

Please sign in to comment.