Seed badrand later
This commit is contained in:
parent
6e266e0905
commit
623f3e8335
1 changed files with 1 additions and 1 deletions
|
|
@ -46,10 +46,10 @@ void start() {
|
||||||
|
|
||||||
if (unlikely(id == 0)) {
|
if (unlikely(id == 0)) {
|
||||||
/* Here we will do a bunch of initialization steps */
|
/* Here we will do a bunch of initialization steps */
|
||||||
|
sbadrand(rtc_time_read() ^ swap64(rtc_time_read()));
|
||||||
memory_sweep(heap_start, heap_end);
|
memory_sweep(heap_start, heap_end);
|
||||||
buddy_init(heap_start, heap_end);
|
buddy_init(heap_start, heap_end);
|
||||||
spinlock_init(&sl);
|
spinlock_init(&sl);
|
||||||
sbadrand(rtc_time_read() ^ swap64(rtc_time_read()));
|
|
||||||
for (int i = 0; i < banner_len; i++) uart_putc(banner[i]);
|
for (int i = 0; i < banner_len; i++) uart_putc(banner[i]);
|
||||||
__sync_synchronize();
|
__sync_synchronize();
|
||||||
hold = 0;
|
hold = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue