- Timestamp:
- 2009-03-23T21:46:40Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c3ebc47
- Parents:
- a5e5030
- Location:
- uspace
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/klog/klog.c
ra5e5030 r05641a9e 43 43 #include <io/stream.h> 44 44 #include <console.h> 45 #include <event.h> 45 46 #include <errno.h> 46 47 … … 83 84 } 84 85 85 // int inr = sysinfo_value("klog.inr"); 86 // if (ipc_register_irq(inr, devno, 0, NULL) != EOK) { 87 // printf(NAME ": Error registering klog notifications\n"); 88 // return -1; 89 // } 86 if (event_subscribe(EVENT_KLOG, 0) != EOK) { 87 printf(NAME ": Error registering klog notifications\n"); 88 return -1; 89 } 90 90 91 91 async_set_interrupt_received(interrupt_received); -
uspace/app/trace/syscalls.c
ra5e5030 r05641a9e 66 66 [SYS_IPC_UNREGISTER_IRQ] = { "ipc_unregister_irq", 2, V_ERRNO }, 67 67 68 [SYS_EVENT_SUBSCRIBE] = { "event_subscribe", 2, V_ERRNO }, 69 68 70 [SYS_CAP_GRANT] = { "cap_grant", 2, V_ERRNO }, 69 71 [SYS_CAP_REVOKE] = { "cap_revoke", 2, V_ERRNO }, -
uspace/lib/libc/Makefile
ra5e5030 r05641a9e 48 48 generic/cap.c \ 49 49 generic/console.c \ 50 generic/event.c \ 50 51 generic/mem.c \ 51 52 generic/string.c \ -
uspace/srv/console/console.c
ra5e5030 r05641a9e 50 50 #include <stdio.h> 51 51 #include <sysinfo.h> 52 #include <event.h> 52 53 53 54 #include "console.h" … … 730 731 731 732 /* Receive kernel notifications */ 732 // if (sysinfo_value("kconsole.present")) { 733 // int inr = sysinfo_value("kconsole.inr"); 734 // if (ipc_register_irq(inr, device_assign_devno(), 0, NULL) != EOK) 735 // printf(NAME ": Error registering kconsole notifications\n"); 736 // 737 // async_set_interrupt_received(interrupt_received); 738 // } 733 if (event_subscribe(EVENT_KCONSOLE, 0) != EOK) 734 printf(NAME ": Error registering kconsole notifications\n"); 735 736 async_set_interrupt_received(interrupt_received); 739 737 740 738 // FIXME: avoid connectiong to itself, keep using klog
Note:
See TracChangeset
for help on using the changeset viewer.