- Timestamp:
- Jul 3, 2017, 2:36:39 PM (7 years ago)
- Location:
- trunk/hal
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/generic/hal_special.h
r121 r124 105 105 * This blocking function flushes the write buffer to synchronize all pending writes. 106 106 ****************************************************************************************/ 107 void hal_ wbflush();107 void hal_fence(); 108 108 109 109 /***************************************************************************************** -
trunk/hal/tsar_mips32/core/hal_gpt.c
r62 r124 318 318 // set the PTE1 319 319 *pte1_ptr = attr | (ppn >> 9); 320 hal_ wbflush();320 hal_fence(); 321 321 return 0; 322 322 } … … 383 383 // set PTE2 in this order 384 384 pt2[2 * ix2 + 1] = ppn; 385 hal_ wbflush();385 hal_fence(); 386 386 pt2[2 * ix2] = attr; 387 hal_ wbflush();387 hal_fence(); 388 388 389 389 return 0; … … 464 464 // unmap the big page 465 465 pt1[ix1] = 0; 466 hal_ wbflush();466 hal_fence(); 467 467 468 468 // releases the big page … … 485 485 // unmap the small page 486 486 pt2[2*ix2] = 0; 487 hal_ wbflush();487 hal_fence(); 488 488 pt2[2*ix2+1] = 0; 489 hal_ wbflush();489 hal_fence(); 490 490 491 491 // releases the small page … … 766 766 } // end loop ix1 767 767 768 hal_ wbflush();768 hal_fence(); 769 769 770 770 return 0; -
trunk/hal/tsar_mips32/core/hal_special.c
r121 r124 80 80 core->cycles = cycles; 81 81 82 hal_ wbflush();82 hal_fence(); 83 83 84 84 return cycles; … … 188 188 } 189 189 190 //////////////// //191 void hal_ wbflush()190 //////////////// 191 void hal_fence() 192 192 { 193 193 asm volatile -
trunk/hal/x86_64/core/hal_remote.c
r105 r124 104 104 uint32_t size ) 105 105 { 106 x86_panic((char *)__func__);106 memcpy((void *)dst, (void *)src, size); 107 107 } 108 108 -
trunk/hal/x86_64/core/hal_special.c
r102 r124 142 142 } 143 143 144 void hal_ wbflush()144 void hal_fence() 145 145 { 146 146 x86_panic((char *)__func__);
Note: See TracChangeset
for help on using the changeset viewer.