Changeset 9f52563 in mainline for generic/src/syscall/syscall.c


Ignore:
Timestamp:
2006-03-17T01:34:36Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a0b0669
Parents:
5fceec7
Message:

Support for user space threads.

File:
1 edited

Legend:

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

    r5fceec7 r9f52563  
    3838#include <ipc/sysipc.h>
    3939
    40 static __native sys_ctl(void) {
    41         printf("Thread finished\n");
    42         thread_exit();
    43         /* Unreachable */
    44         return 0;
    45 }
    46 
    4740static __native sys_io(int fd, const void * buf, size_t count) {
    4841       
     
    5649        return count;
    5750}
    58 
    5951
    6052static __native sys_mmap(void *address, size_t size, int flags)
     
    7264
    7365syshandler_t syscall_table[SYSCALL_END] = {
    74         sys_ctl,
    7566        sys_io,
     67        sys_thread_create,
     68        sys_thread_exit,
    7669        sys_mmap,
    7770        sys_mremap,
Note: See TracChangeset for help on using the changeset viewer.