Changeset 2ad7627 in mainline


Ignore:
Timestamp:
2006-03-16T00:35:02Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8e75edf
Parents:
2fb49101
Message:

mmap() syscall.

Location:
generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • generic/include/syscall/syscall.h

    r2fb49101 r2ad7627  
    3333        SYS_CTL = 0,
    3434        SYS_IO,
     35        SYS_MMAP,
    3536        SYS_MREMAP,
    3637        SYS_IPC_CALL_SYNC_FAST,
  • generic/src/syscall/syscall.c

    r2fb49101 r2ad7627  
    5858
    5959
    60 static __native sys_mremap(void *address, size_t size, unsigned long flags)
     60static __native sys_mmap(void *address, size_t size, int flags)
     61{
     62        if (as_area_create(AS, flags, size, (__address) address))
     63                return (__native) address;
     64        else
     65                return (__native) -1;
     66}
     67
     68static __native sys_mremap(void *address, size_t size, int flags)
    6169{
    6270        return as_remap(AS, (__address) address, size, 0);
     
    6674        sys_ctl,
    6775        sys_io,
     76        sys_mmap,
    6877        sys_mremap,
    6978        sys_ipc_call_sync_fast,
Note: See TracChangeset for help on using the changeset viewer.