Changeset 4be51c8 in mainline
- Timestamp:
- 2006-01-15T17:38:16Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fd537a0
- Parents:
- 204674e
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia32/src/interrupt.c
r204674e r4be51c8 117 117 118 118 if (stack[-2] < SYSCALL_END) 119 s yscall_table[stack[-2]](stack[-5], stack[-3], stack[-4]);119 stack[-2] = syscall_table[stack[-2]](stack[-5], stack[-3], stack[-4]); 120 120 else 121 121 panic("Undefined syscall %d", stack[-2]); -
generic/src/syscall/syscall.c
r204674e r4be51c8 28 28 29 29 #include <syscall/syscall.h> 30 #include <proc/thread.h> 30 31 #include <print.h> 31 32 #include <putchar.h> 32 33 33 34 int sys_ctl(void) { 34 printf("SYS_CTL\n"); 35 printf("Thread finished\n"); 36 thread_exit(); 37 /* Unreachable */ 35 38 return 0; 36 39 } … … 45 48 putchar(((char *) buf)[i]); 46 49 47 return 0;50 return count; 48 51 } 49 52
Note:
See TracChangeset
for help on using the changeset viewer.