- Timestamp:
- 2006-03-13T20:51:35Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5c089c3a
- Parents:
- 25d7709
- Location:
- arch
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/amd64/include/syscall.h
r25d7709 r631ca4d 32 32 #include <arch/types.h> 33 33 34 extern __native syscall_handler(__native id, __native a1, __native a2, __native a3); 34 extern __native syscall_handler(__native a1,__native a2, __native a3, 35 __native a4, __native id); 35 36 extern void syscall_setup_cpu(void); 36 37 -
arch/amd64/src/syscall.c
r25d7709 r631ca4d 64 64 /** Dispatch system call */ 65 65 __native syscall_handler(__native a1, __native a2, __native a3, 66 __native id)66 __native a4, __native id) 67 67 { 68 68 if (id < SYSCALL_END) 69 return syscall_table[id](a1,a2,a3 );69 return syscall_table[id](a1,a2,a3,a4); 70 70 else 71 71 panic("Undefined syscall %d", id); -
arch/ia32/src/interrupt.c
r25d7709 r631ca4d 108 108 { 109 109 interrupts_enable(); 110 if (istate->e dx< SYSCALL_END)111 istate->eax = syscall_table[istate->e dx](istate->eax, istate->ebx, istate->ecx);110 if (istate->esi < SYSCALL_END) 111 istate->eax = syscall_table[istate->esi](istate->eax, istate->ebx, istate->ecx, istate->edx); 112 112 else 113 panic("Undefined syscall %d", istate->e dx);113 panic("Undefined syscall %d", istate->esi); 114 114 interrupts_disable(); 115 115 } -
arch/mips32/src/exception.c
r25d7709 r631ca4d 135 135 { 136 136 interrupts_enable(); 137 if (istate-> a3< SYSCALL_END)138 istate->v0 = syscall_table[istate-> a3](istate->a0,137 if (istate->t0 < SYSCALL_END) 138 istate->v0 = syscall_table[istate->t0](istate->a0, 139 139 istate->a1, 140 istate->a2); 140 istate->a2, 141 istate->a3); 141 142 else 142 143 panic("Undefined syscall %d", istate->a3);
Note:
See TracChangeset
for help on using the changeset viewer.