Changeset 255 for soft/giet_vm/sys/giet.s
- Timestamp:
- Oct 9, 2013, 9:32:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/sys/giet.s
r219 r255 9 9 * - the _cause_vector[16] array defines the 16 causes to enter the GIET 10 10 * it is initialized in th exc_handler.c file 11 * - the _syscall_vector[ 32] array defines the 32system calls entry points11 * - the _syscall_vector[64] array defines the 64 system calls entry points 12 12 * it is initialised in the sys_handler.c file 13 13 ***********************************************************************************/ … … 38 38 * 39 39 * A system call is handled as a special function call. 40 * - $2 contains the system call index (< 16).40 * - $2 contains the system call index (< 64). 41 41 * - $3 is used to store the syscall address 42 42 * - $4, $5, $6, $7 contain the arguments values. … … 62 62 sw $27, 20($29) /* save it in the stack */ 63 63 64 andi $26, $2, 0x 1F /* $26 <= syscall index (i < 32) */64 andi $26, $2, 0x3F /* $26 <= syscall index (i < 64) */ 65 65 sll $26, $26, 2 /* $26 <= index * 4 */ 66 66 la $27, _syscall_vector /* $27 <= &_syscall_vector[0] */
Note: See TracChangeset
for help on using the changeset viewer.