Changeset c05a50f in mainline
- Timestamp:
- 2008-06-06T23:17:16Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 8d62052
- Parents:
- 1c03c17
- Location:
- kernel/generic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/syscall/syscall.h
r1c03c17 rc05a50f 37 37 38 38 typedef enum { 39 SYS_ IO= 0,39 SYS_KLOG = 0, 40 40 SYS_TLS_SET = 1, /* Hardcoded in AMD64, IA32 uspace - fibril.S */ 41 41 -
kernel/generic/src/console/console.c
r1c03c17 rc05a50f 50 50 51 51 #define KLOG_SIZE PAGE_SIZE 52 #define KLOG_LATENCY 8 52 53 53 54 /**< Kernel log cyclic buffer */ … … 276 277 klog_uspace++; 277 278 279 /* Check notify uspace to update */ 280 bool update; 281 if ((klog_uspace > KLOG_LATENCY) || (c == '\n')) 282 update = true; 283 else 284 update = false; 285 278 286 spinlock_unlock(&klog_lock); 279 287 280 klog_update(); 288 if (update) 289 klog_update(); 281 290 } 282 291 -
kernel/generic/src/syscall/syscall.c
r1c03c17 rc05a50f 58 58 * 59 59 */ 60 static unative_t sys_ io(int fd, const void * buf, size_t count)60 static unative_t sys_klog(int fd, const void * buf, size_t count) 61 61 { 62 62 size_t i; … … 115 115 116 116 syshandler_t syscall_table[SYSCALL_END] = { 117 (syshandler_t) sys_ io,117 (syshandler_t) sys_klog, 118 118 (syshandler_t) sys_tls_set, 119 119
Note:
See TracChangeset
for help on using the changeset viewer.