Changeset 570 for trunk/hal/tsar_mips32/core/hal_gpt.c
- Timestamp:
- Oct 5, 2018, 12:08:35 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/hal/tsar_mips32/core/hal_gpt.c
r492 r570 799 799 800 800 // get src_pte1 801 src_pte1 = hal_remote_l w( XPTR( src_cxy , &src_pt1[ix1] ) );801 src_pte1 = hal_remote_l32( XPTR( src_cxy , &src_pt1[ix1] ) ); 802 802 803 803 // do nothing if src_pte1 not MAPPED or not SMALL … … 844 844 845 845 // get attr and ppn from SRC_PT2 846 src_pte2_attr = hal_remote_l w( XPTR( src_cxy , &src_pt2[2 * ix2] ) );847 src_pte2_ppn = hal_remote_l w( XPTR( src_cxy , &src_pt2[2 * ix2 + 1] ) );846 src_pte2_attr = hal_remote_l32( XPTR( src_cxy , &src_pt2[2 * ix2] ) ); 847 src_pte2_ppn = hal_remote_l32( XPTR( src_cxy , &src_pt2[2 * ix2 + 1] ) ); 848 848 849 849 // do nothing if src_pte2 not MAPPED … … 1001 1001 1002 1002 // get PTE1 value 1003 pte1 = hal_remote_l w( XPTR( gpt_cxy , &pt1[ix1] ) );1003 pte1 = hal_remote_l32( XPTR( gpt_cxy , &pt1[ix1] ) ); 1004 1004 1005 1005 // only MAPPED & SMALL PTEs are modified … … 1014 1014 1015 1015 // get current PTE2 attributes 1016 attr = hal_remote_l w( XPTR( gpt_cxy , &pt2[2*ix2] ) );1016 attr = hal_remote_l32( XPTR( gpt_cxy , &pt2[2*ix2] ) ); 1017 1017 1018 1018 // only MAPPED PTEs are modified … … 1020 1020 { 1021 1021 attr = (attr | TSAR_MMU_COW) & (~TSAR_MMU_WRITABLE); 1022 hal_remote_s w( XPTR( gpt_cxy , &pt2[2*ix2] ) , attr );1022 hal_remote_s32( XPTR( gpt_cxy , &pt2[2*ix2] ) , attr ); 1023 1023 } 1024 1024 } … … 1063 1063 1064 1064 // get PTE1 value 1065 pte1 = hal_remote_l w( XPTR( gpt_cxy , &pt1[ix1] ) );1065 pte1 = hal_remote_l32( XPTR( gpt_cxy , &pt1[ix1] ) ); 1066 1066 1067 1067 if( (pte1 & TSAR_MMU_MAPPED) == 0 ) return; … … 1073 1073 1074 1074 // reset PTE2 1075 hal_remote_s w( XPTR( gpt_cxy, &pt2[2 * ix2] ) , 0 );1075 hal_remote_s32( XPTR( gpt_cxy, &pt2[2 * ix2] ) , 0 ); 1076 1076 hal_fence(); 1077 1077 1078 1078 // set PTE2 in this order 1079 hal_remote_s w( XPTR( gpt_cxy, &pt2[2 * ix2 + 1] ) , ppn );1079 hal_remote_s32( XPTR( gpt_cxy, &pt2[2 * ix2 + 1] ) , ppn ); 1080 1080 hal_fence(); 1081 hal_remote_s w( XPTR( gpt_cxy, &pt2[2 * ix2] ) , tsar_attr );1081 hal_remote_s32( XPTR( gpt_cxy, &pt2[2 * ix2] ) , tsar_attr ); 1082 1082 hal_fence(); 1083 1083
Note: See TracChangeset
for help on using the changeset viewer.