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

implement hal_time_stamp and hal_fence

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/x86_64/core/hal_special.c

    r124 r125  
    7676}
    7777
     78cycle_t hal_time_stamp()
     79{
     80        return rdtsc();
     81}
     82
    7883uint64_t hal_get_cycles()
    7984{
     
    144149void hal_fence()
    145150{
    146         x86_panic((char *)__func__);
     151        mfence();
    147152}
    148153
Note: See TracChangeset for help on using the changeset viewer.