Changeset 0dbc4e7 in mainline
- 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
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/interrupt.h
r874621f r0dbc4e7 55 55 { 56 56 /* TODO */ 57 return 0; 57 58 } 58 59 static inline __native istate_get_pc(istate_t *istate) 59 60 { 60 61 /* TODO */ 62 return 0; 61 63 } 62 64 -
generic/src/interrupt/interrupt.c
r874621f r0dbc4e7 86 86 87 87 exc_table[n].f(n + IVT_FIRST, istate); 88 /* This is a safe place to exit exiting thread */ 89 if (THREAD && THREAD->interrupted && istate_from_uspace(istate)) 90 thread_exit(); 88 91 } 89 92 -
generic/src/proc/task.c
r874621f r0dbc4e7 50 50 #include <errno.h> 51 51 #include <syscall/copy.h> 52 #include <console/klog.h> 52 53 53 54 #ifndef LOADED_PROG_STACK_PAGES_NO … … 402 403 ipc_cleanup(); 403 404 futex_cleanup(); 405 klog_printf("Cleanup of task %lld completed.", TASK->taskid); 404 406 } 405 407 -
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.