Changeset 170 for soft/giet_vm/sys
- Timestamp:
- Jul 17, 2012, 4:37:44 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/vm_handler.c
r167 r170 98 98 { 99 99 unsigned int ptba; 100 unsigned int* pte2; 101 unsigned int flags_value; 102 unsigned int ppn_value; 100 101 register unsigned int* pte2; 102 register unsigned int flags_value; 103 register unsigned int ppn_value; 103 104 104 105 unsigned int ix1 = vpn >> 9; … … 117 118 118 119 // gets ppn_value and flags_value, after temporary DTLB desactivation 119 asm volatile ( "li $26, 0xB \n" /* DTLB unactivated */ 120 asm volatile ( "move $27, %2 \n" /* $27 <= pte2 */ 121 "li $26, 0xB \n" /* DTLB unactivated */ 120 122 "mtc2 $26, $1 \n" 121 "lw %0, 0( %2)\n" /* read flags */122 "lw %1, 4( %2)\n" /* read ppn */123 "lw %0, 0($27) \n" /* read flags */ 124 "lw %1, 4($27) \n" /* read ppn */ 123 125 "li $26, 0xF \n" 124 126 "mtc2 $26, $1 \n" /* DTLB activated */
Note: See TracChangeset
for help on using the changeset viewer.