Changeset aa48a9d in mainline


Ignore:
Timestamp:
2008-06-03T14:54:24Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c859753
Parents:
52755f1
Message:

change SYS_IO semantics
add SYS_TASK_SPAWN
proper printf formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/syscall/syscall.c

    r52755f1 raa48a9d  
    5252#include <sysinfo/sysinfo.h>
    5353#include <console/console.h>
    54 #include <console/klog.h>
    5554
    5655/** Print using kernel facility
    5756 *
    58  * Some simulators can print only through kernel. Userspace can use
    59  * this syscall to facilitate it.
     57 * Print to kernel log.
     58 *
    6059 */
    6160static unative_t sys_io(int fd, const void * buf, size_t count)
     
    101100                rc = syscall_table[id](a1, a2, a3, a4, a5, a6);
    102101        else {
    103                 klog_printf("TASK %llu: Unknown syscall id %llx", TASK->taskid,
    104                     id);
     102                printf("Task %" PRIu64": Unknown syscall %#" PRIxn, TASK->taskid, id);
    105103                task_kill(TASK->taskid);
    106104                thread_exit();
     
    121119        (syshandler_t) sys_thread_exit,
    122120        (syshandler_t) sys_thread_get_id,
     121       
    123122        (syshandler_t) sys_task_get_id,
     123        (syshandler_t) sys_task_spawn,
    124124       
    125125        /* Synchronization related syscalls. */
Note: See TracChangeset for help on using the changeset viewer.