Changeset 7f5b37a in mainline for libc/generic/ddi.c


Ignore:
Timestamp:
2006-05-28T10:05:03Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0b99e40
Parents:
01ff41c
Message:

Sync with kernel.
Make map_physmem() pass address space area flags instead of boolean switch.

Try to map fb memory with caching enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libc/generic/ddi.c

    r01ff41c r7f5b37a  
    4040 * @param vp Virtual address of the sterting page.
    4141 * @param pages Number of pages to map.
    42  * @param writable If true, the mapping will be created writable.
     42 * @param flags Flags for the new address space area.
    4343 *
    4444 * @return 0 on success, EPERM if the caller lacks the CAP_MEM_MANAGER capability,
     
    4646 *         was some problem in creating address space area.
    4747 */
    48 int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int writable)
     48int map_physmem(task_id_t id, void *pf, void *vp, unsigned long pages, int flags)
    4949{
    5050        task_id_t task_id;
     
    5555        arg.virt_base = vp;
    5656        arg.pages = pages;
    57         arg.writable = writable;
     57        arg.flags = flags;
    5858
    5959        return __SYSCALL1(SYS_MAP_PHYSMEM, (sysarg_t) &arg);
Note: See TracChangeset for help on using the changeset viewer.