Changeset 124 for trunk/hal/tsar_mips32


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

rename hal_wbflush->hal_fence

Location:
trunk/hal/tsar_mips32/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/hal/tsar_mips32/core/hal_gpt.c

    r62 r124  
    318318        // set the PTE1
    319319                *pte1_ptr = attr | (ppn >> 9);
    320                 hal_wbflush();
     320                hal_fence();
    321321                return 0;
    322322        }
     
    383383    // set PTE2 in this order
    384384        pt2[2 * ix2 + 1] = ppn;
    385         hal_wbflush();
     385        hal_fence();
    386386        pt2[2 * ix2]     = attr;
    387         hal_wbflush();
     387        hal_fence();
    388388
    389389        return 0;
     
    464464        // unmap the big page
    465465        pt1[ix1] = 0;
    466             hal_wbflush();
     466            hal_fence();
    467467
    468468        // releases the big page
     
    485485        // unmap the small page
    486486            pt2[2*ix2]   = 0;
    487             hal_wbflush();
     487            hal_fence();
    488488            pt2[2*ix2+1] = 0;
    489             hal_wbflush();
     489            hal_fence();
    490490
    491491        // releases the small page
     
    766766    }  // end loop ix1
    767767
    768     hal_wbflush();
     768    hal_fence();
    769769
    770770    return 0;
  • trunk/hal/tsar_mips32/core/hal_special.c

    r121 r124  
    8080        core->cycles     = cycles;
    8181
    82         hal_wbflush();
     82        hal_fence();
    8383
    8484        return cycles;
     
    188188}
    189189
    190 //////////////////
    191 void hal_wbflush()
     190////////////////
     191void hal_fence()
    192192{
    193193        asm volatile
Note: See TracChangeset for help on using the changeset viewer.