Changeset 7509ddc in mainline for generic/src/syscall/syscall.c
- Timestamp:
- 2006-06-04T21:54:49Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 34dcd3f
- Parents:
- 2cb5e64
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/syscall/syscall.c
r2cb5e64 r7509ddc 91 91 __native a4, __native id) 92 92 { 93 __native rc; 94 ipl_t ipl; 95 bool exit = false; 96 93 97 if (id < SYSCALL_END) 94 r eturnsyscall_table[id](a1,a2,a3,a4);98 rc = syscall_table[id](a1,a2,a3,a4); 95 99 else 96 100 panic("Undefined syscall %d", id); 101 102 ipl = interrupts_disable(); 103 spinlock_lock(&THREAD->lock); 104 if (THREAD->interrupted) 105 exit = true; 106 spinlock_unlock(&THREAD->lock); 107 interrupts_restore(ipl); 108 109 if (exit) 110 thread_exit(); 111 112 return rc; 97 113 } 98 114
Note:
See TracChangeset
for help on using the changeset viewer.