Changeset 124 for trunk/hal/tsar_mips32/core
- Timestamp:
- Jul 3, 2017, 2:36:39 PM (7 years ago)
- Location:
- trunk/hal/tsar_mips32/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note: See TracChangeset
for help on using the changeset viewer.