Rev 2931 | Rev 3001 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2931 | Rev 2952 | ||
---|---|---|---|
Line 89... | Line 89... | ||
89 | { |
89 | { |
90 | arch_grab_console(); |
90 | arch_grab_console(); |
91 | return 0; |
91 | return 0; |
92 | } |
92 | } |
93 | 93 | ||
- | 94 | /** Print a hex integer into klog */ |
|
- | 95 | static unative_t sys_debug_putint(unative_t i) |
|
- | 96 | { |
|
- | 97 | klog_printf("[task:0x%x]", i); |
|
- | 98 | return 0; |
|
- | 99 | } |
|
- | 100 | ||
94 | /** Dispatch system call */ |
101 | /** Dispatch system call */ |
95 | unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3, |
102 | unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3, |
96 | unative_t a4, unative_t a5, unative_t a6, unative_t id) |
103 | unative_t a4, unative_t a5, unative_t a6, unative_t id) |
97 | { |
104 | { |
98 | unative_t rc; |
105 | unative_t rc; |
Line 156... | Line 163... | ||
156 | /* Sysinfo syscalls */ |
163 | /* Sysinfo syscalls */ |
157 | (syshandler_t) sys_sysinfo_valid, |
164 | (syshandler_t) sys_sysinfo_valid, |
158 | (syshandler_t) sys_sysinfo_value, |
165 | (syshandler_t) sys_sysinfo_value, |
159 | 166 | ||
160 | /* Debug calls */ |
167 | /* Debug calls */ |
161 | (syshandler_t) sys_debug_enable_console |
168 | (syshandler_t) sys_debug_enable_console, |
- | 169 | (syshandler_t) sys_debug_putint |
|
162 | }; |
170 | }; |
163 | 171 | ||
164 | /** @} |
172 | /** @} |
165 | */ |
173 | */ |