- Timestamp:
- 2006-05-31T22:18:40Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e7ed9868
- Parents:
- 018f95a
- Location:
- generic
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/include/console/console.h
r018f95a r41d33ac 41 41 extern void putchar(char c); 42 42 43 extern void arch_grab_console(void); 44 extern void arch_release_console(void); 45 43 46 #endif /* __CHARDEV_H__ */ -
generic/include/syscall/syscall.h
r018f95a r41d33ac 59 59 SYS_SYSINFO_VALID, 60 60 SYS_SYSINFO_VALUE, 61 SYS_DEBUG_ENABLE_CONSOLE, 61 62 SYSCALL_END 62 63 } syscall_t; -
generic/src/console/cmd.c
r018f95a r41d33ac 38 38 39 39 #include <console/cmd.h> 40 #include <console/console.h> 40 41 #include <console/kconsole.h> 41 42 #include <print.h> … … 71 72 .name = "exit", 72 73 .description ="Exit kconsole", 74 .argc = 0 75 }; 76 77 static int cmd_continue(cmd_arg_t *argv); 78 static cmd_info_t continue_info = { 79 .name = "continue", 80 .description ="Return console back to userspace", 81 .func = cmd_continue, 73 82 .argc = 0 74 83 }; … … 333 342 &call2_info, 334 343 &call3_info, 344 &continue_info, 335 345 &cpus_info, 336 346 &desc_info, … … 700 710 return 1; 701 711 } 712 713 /** Command for returning console back to userspace. 714 * 715 * @param argv Ignored. 716 * 717 * return Always 1. 718 */ 719 int cmd_continue(cmd_arg_t *argv) 720 { 721 arch_release_console(); 722 return 1; 723 } -
generic/src/syscall/syscall.c
r018f95a r41d33ac 47 47 #include <syscall/copy.h> 48 48 #include <sysinfo/sysinfo.h> 49 #include <console/console.h> 49 50 50 51 /** Print using kernel facility … … 77 78 78 79 return count; 80 } 81 82 /** Tell kernel to get keyboard/console access again */ 83 static __native sys_debug_enable_console(void) 84 { 85 arch_grab_console(); 86 return 0; 79 87 } 80 88 … … 131 139 /* Sysinfo syscalls */ 132 140 sys_sysinfo_valid, 133 sys_sysinfo_value 141 sys_sysinfo_value, 142 143 /* Debug calls */ 144 sys_debug_enable_console 134 145 };
Note:
See TracChangeset
for help on using the changeset viewer.