Changeset 301 for soft/giet_vm/giet_kernel/switch.s
- Timestamp:
- Apr 14, 2014, 6:44:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_kernel/switch.s
r263 r301 2 2 * This function receives two arguments that are the current task context 3 3 * (virtual) addresses and the next task context (virtual) address. 4 * 5 * This function should be called in a critical section 4 6 * 5 7 * TODO (AG) Il semble possible de limiter le nombre de registres à sauver: … … 18 20 19 21 _task_switch: 20 21 /* enter critical section */22 li $2, 0xFFFFFFFE23 mfc0 $3, $1224 and $3, $3, $225 mtc0 $3, $1226 22 27 23 /* save _current task context */ … … 123 119 mtc2 $26, $0 /* restore PTPR */ 124 120 125 /* exit critical section */126 li $2, 0x00000001127 mfc0 $3, $12128 or $3, $3, $2129 mtc0 $3, $12130 131 121 /* returns to caller */ 132 122 jr $31
Note: See TracChangeset
for help on using the changeset viewer.