Changeset d8d542e in mainline for kernel/generic/src/syscall/syscall.c


Ignore:
Timestamp:
2007-02-05T15:06:39Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
28af62f
Parents:
4184e76
Message:

explicit typecast

File:
1 edited

Legend:

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

    r4184e76 rd8d542e  
    6868                return ELIMIT;
    6969
    70         data = malloc(count, 0);
     70        data = (char *) malloc(count, 0);
    7171        if (!data)
    7272                return ENOMEM;
     
    9999
    100100        if (id < SYSCALL_END)
    101                 rc = syscall_table[id](a1,a2,a3,a4);
     101                rc = syscall_table[id](a1, a2, a3, a4);
    102102        else {
    103103                klog_printf("TASK %lld: Unknown syscall id %d",TASK->taskid,id);
     
    113113
    114114syshandler_t syscall_table[SYSCALL_END] = {
    115         sys_io,
    116         sys_tls_set,
     115        (syshandler_t) sys_io,
     116        (syshandler_t) sys_tls_set,
    117117       
    118118        /* Thread and task related syscalls. */
    119         sys_thread_create,
    120         sys_thread_exit,
    121         sys_task_get_id,
     119        (syshandler_t) sys_thread_create,
     120        (syshandler_t) sys_thread_exit,
     121        (syshandler_t) sys_task_get_id,
    122122       
    123123        /* Synchronization related syscalls. */
    124         sys_futex_sleep_timeout,
    125         sys_futex_wakeup,
     124        (syshandler_t) sys_futex_sleep_timeout,
     125        (syshandler_t) sys_futex_wakeup,
    126126       
    127127        /* Address space related syscalls. */
    128         sys_as_area_create,
    129         sys_as_area_resize,
    130         sys_as_area_destroy,
    131 
     128        (syshandler_t) sys_as_area_create,
     129        (syshandler_t) sys_as_area_resize,
     130        (syshandler_t) sys_as_area_destroy,
     131       
    132132        /* IPC related syscalls. */
    133         sys_ipc_call_sync_fast,
    134         sys_ipc_call_sync,
    135         sys_ipc_call_async_fast,
    136         sys_ipc_call_async,
    137         sys_ipc_answer_fast,
    138         sys_ipc_answer,
    139         sys_ipc_forward_fast,
    140         sys_ipc_wait_for_call,
    141         sys_ipc_hangup,
    142         sys_ipc_register_irq,
    143         sys_ipc_unregister_irq,
    144 
     133        (syshandler_t) sys_ipc_call_sync_fast,
     134        (syshandler_t) sys_ipc_call_sync,
     135        (syshandler_t) sys_ipc_call_async_fast,
     136        (syshandler_t) sys_ipc_call_async,
     137        (syshandler_t) sys_ipc_answer_fast,
     138        (syshandler_t) sys_ipc_answer,
     139        (syshandler_t) sys_ipc_forward_fast,
     140        (syshandler_t) sys_ipc_wait_for_call,
     141        (syshandler_t) sys_ipc_hangup,
     142        (syshandler_t) sys_ipc_register_irq,
     143        (syshandler_t) sys_ipc_unregister_irq,
     144       
    145145        /* Capabilities related syscalls. */
    146         sys_cap_grant,
    147         sys_cap_revoke,
    148 
     146        (syshandler_t) sys_cap_grant,
     147        (syshandler_t) sys_cap_revoke,
     148       
    149149        /* DDI related syscalls. */
    150         sys_physmem_map,
    151         sys_iospace_enable,
    152         sys_preempt_control,
     150        (syshandler_t) sys_physmem_map,
     151        (syshandler_t) sys_iospace_enable,
     152        (syshandler_t) sys_preempt_control,
    153153       
    154154        /* Sysinfo syscalls */
    155         sys_sysinfo_valid,
    156         sys_sysinfo_value,
     155        (syshandler_t) sys_sysinfo_valid,
     156        (syshandler_t) sys_sysinfo_value,
    157157       
    158158        /* Debug calls */
    159         sys_debug_enable_console
     159        (syshandler_t) sys_debug_enable_console
    160160};
    161161
Note: See TracChangeset for help on using the changeset viewer.