Changeset 0dbc4e7 in mainline for generic/src/syscall/syscall.c
- Timestamp:
- 2006-06-06T08:26:26Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bffa0b06
- Parents:
- 874621f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/syscall/syscall.c
r874621f r0dbc4e7 48 48 #include <sysinfo/sysinfo.h> 49 49 #include <console/console.h> 50 #include <console/klog.h> 50 51 51 52 /** Print using kernel facility … … 92 93 { 93 94 __native rc; 94 ipl_t ipl;95 bool exit = false;96 95 97 96 if (id < SYSCALL_END) 98 97 rc = syscall_table[id](a1,a2,a3,a4); 99 else 100 panic("Undefined syscall %d", id); 98 else { 99 klog_printf("TASK %lld: Unknown syscall id %d",TASK->taskid,id); 100 task_kill(TASK->taskid); 101 thread_exit(); 102 } 101 103 102 ipl = interrupts_disable();103 spinlock_lock(&THREAD->lock);104 104 if (THREAD->interrupted) 105 exit = true;106 spinlock_unlock(&THREAD->lock);107 interrupts_restore(ipl);108 109 if (exit)110 105 thread_exit(); 111 106
Note:
See TracChangeset
for help on using the changeset viewer.