Changeset 126 for trunk


Ignore:
Timestamp:
Jul 3, 2017, 2:48:08 PM (7 years ago)
Author:
max@…
Message:

use hal_time_stamp instead, because hal_get_cycles will use the
current core, which is not initialized yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/core.c

    r124 r126  
    5757        core->thread_idle       = NULL;
    5858        core->fpu_owner         = NULL;
    59         core->rand_last         =  hal_get_cycles() & 0xFFF;
     59        core->rand_last         = hal_time_stamp() & 0xFFF;
    6060
    6161        sched_init( core );
Note: See TracChangeset for help on using the changeset viewer.