Changeset 5a8b2a2 in mainline


Ignore:
Timestamp:
2006-12-06T22:30:36Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9d8b8435
Parents:
d178208
Message:

Eliminate confusion between SYS_MAP_PHYSMEM and sys_physmem_map.
The syscall is to be called SYS_PHYSMEM_MAP from now on and the functions that participate in its implementation are
called *physmem_map().

Files:
9 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/ddi/ddi_arg.h

    rd178208 r5a8b2a2  
    3636#define KERN_DDI_ARG_H_
    3737
    38 /** Structure encapsulating arguments for SYS_MAP_PHYSMEM syscall. */
     38/** Structure encapsulating arguments for SYS_PHYSMEM_MAP syscall. */
    3939typedef struct {
    4040        unsigned long long task_id;     /** ID of the destination task. */
  • kernel/generic/include/syscall/syscall.h

    rd178208 r5a8b2a2  
    6060        SYS_CAP_GRANT,
    6161        SYS_CAP_REVOKE,
    62         SYS_MAP_PHYSMEM,
     62        SYS_PHYSMEM_MAP,
    6363        SYS_IOSPACE_ENABLE,
    6464        SYS_PREEMPT_CONTROL,
  • kernel/generic/src/ddi/ddi.c

    rd178208 r5a8b2a2  
    152152}
    153153
    154 /** Wrapper for SYS_MAP_PHYSMEM syscall.
     154/** Wrapper for SYS_PHYSMEM_MAP syscall.
    155155 *
    156156 * @param phys_base Physical base address to map
  • uspace/fb/ega.c

    rd178208 r5a8b2a2  
    314314        scr_addr = as_get_mappable_page(sz);
    315315
    316         map_physmem(ega_ph_addr, scr_addr, ALIGN_UP(sz,PAGE_SIZE)>>PAGE_WIDTH,
     316        physmem_map(ega_ph_addr, scr_addr, ALIGN_UP(sz, PAGE_SIZE) >> PAGE_WIDTH,
    317317                    AS_AREA_READ | AS_AREA_WRITE);
    318318
  • uspace/fb/fb.c

    rd178208 r5a8b2a2  
    12851285        fb_addr = as_get_mappable_page(asz);
    12861286       
    1287         map_physmem(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >> PAGE_WIDTH,
     1287        physmem_map(fb_ph_addr, fb_addr, ALIGN_UP(asz, PAGE_SIZE) >> PAGE_WIDTH,
    12881288                    AS_AREA_READ | AS_AREA_WRITE);
    12891289
  • uspace/libc/generic/ddi.c

    rd178208 r5a8b2a2  
    5151 *         was some problem in creating address space area.
    5252 */
    53 int map_physmem(void *pf, void *vp, unsigned long pages, int flags)
     53int physmem_map(void *pf, void *vp, unsigned long pages, int flags)
    5454{
    55         return __SYSCALL4(SYS_MAP_PHYSMEM, (sysarg_t) pf, (sysarg_t) vp, pages, flags);
     55        return __SYSCALL4(SYS_PHYSMEM_MAP, (sysarg_t) pf, (sysarg_t) vp, pages, flags);
    5656}
    5757
  • uspace/libc/include/ddi.h

    rd178208 r5a8b2a2  
    3838#include <task.h>
    3939
    40 extern int map_physmem(void *pf, void *vp, unsigned long pages, int flags);
     40extern int physmem_map(void *pf, void *vp, unsigned long pages, int flags);
    4141extern int iospace_enable(task_id_t id, void *ioaddr, unsigned long size);
    4242extern int preemption_control(int enable);
  • uspace/ns/ns.c

    rd178208 r5a8b2a2  
    9595                }
    9696                *addr = as_get_mappable_page(PAGE_SIZE);
    97                 map_physmem(ph_addr, *addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE);
    98         }
    99         ipc_answer_fast(callid, 0, (ipcarg_t)*addr, AS_AREA_READ);
     97                physmem_map(ph_addr, *addr, 1, AS_AREA_READ | AS_AREA_CACHEABLE);
     98        }
     99        ipc_answer_fast(callid, 0, (ipcarg_t) *addr, AS_AREA_READ);
    100100}
    101101
  • uspace/rd/rd.c

    rd178208 r5a8b2a2  
    8080        void * rd_addr = as_get_mappable_page(rd_size);
    8181       
    82         map_physmem(rd_ph_addr, rd_addr, ALIGN_UP(rd_size, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE);
     82        physmem_map(rd_ph_addr, rd_addr, ALIGN_UP(rd_size, PAGE_SIZE) >> PAGE_WIDTH, AS_AREA_READ | AS_AREA_WRITE);
    8383       
    8484        return true;
Note: See TracChangeset for help on using the changeset viewer.