Changeset 125
- Timestamp:
- Jul 3, 2017, 2:45:44 PM (7 years ago)
- Location:
- trunk/hal/x86_64/core
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/x86_64/core/hal_cpu.S
r99 r125 91 91 ret 92 92 93 ASM_ENTRY(mfence) 94 mfence 95 ret 96 93 97 ASM_ENTRY(rcr2) 94 98 movq %cr2,%rax -
trunk/hal/x86_64/core/hal_internal.h
r116 r125 40 40 uint64_t rdmsr(uint32_t); 41 41 void wrmsr(uint32_t, uint64_t); 42 void mfence(); 42 43 vaddr_t rcr2(void); 43 44 -
trunk/hal/x86_64/core/hal_special.c
r124 r125 76 76 } 77 77 78 cycle_t hal_time_stamp() 79 { 80 return rdtsc(); 81 } 82 78 83 uint64_t hal_get_cycles() 79 84 { … … 144 149 void hal_fence() 145 150 { 146 x86_panic((char *)__func__);151 mfence(); 147 152 } 148 153
Note: See TracChangeset
for help on using the changeset viewer.