/branches/dynload/kernel/generic/include/syscall/syscall.h |
---|
66,6 → 66,7 |
SYS_SYSINFO_VALID, |
SYS_SYSINFO_VALUE, |
SYS_DEBUG_ENABLE_CONSOLE, |
SYS_DEBUG_PUTINT, |
SYSCALL_END |
} syscall_t; |
/branches/dynload/kernel/generic/src/syscall/syscall.c |
---|
91,6 → 91,13 |
return 0; |
} |
/** Print a hex integer into klog */ |
static unative_t sys_debug_putint(unative_t i) |
{ |
klog_printf("[task:0x%x]", i); |
return 0; |
} |
/** Dispatch system call */ |
unative_t syscall_handler(unative_t a1, unative_t a2, unative_t a3, |
unative_t a4, unative_t a5, unative_t a6, unative_t id) |
158,7 → 165,8 |
(syshandler_t) sys_sysinfo_value, |
/* Debug calls */ |
(syshandler_t) sys_debug_enable_console |
(syshandler_t) sys_debug_enable_console, |
(syshandler_t) sys_debug_putint |
}; |
/** @} |