Changeset 5a8b2a2 in mainline
- Timestamp:
- 2006-12-06T22:30:36Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d8b8435
- Parents:
- d178208
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/ddi/ddi_arg.h
rd178208 r5a8b2a2 36 36 #define KERN_DDI_ARG_H_ 37 37 38 /** Structure encapsulating arguments for SYS_ MAP_PHYSMEMsyscall. */38 /** Structure encapsulating arguments for SYS_PHYSMEM_MAP syscall. */ 39 39 typedef struct { 40 40 unsigned long long task_id; /** ID of the destination task. */ -
kernel/generic/include/syscall/syscall.h
rd178208 r5a8b2a2 60 60 SYS_CAP_GRANT, 61 61 SYS_CAP_REVOKE, 62 SYS_ MAP_PHYSMEM,62 SYS_PHYSMEM_MAP, 63 63 SYS_IOSPACE_ENABLE, 64 64 SYS_PREEMPT_CONTROL, -
kernel/generic/src/ddi/ddi.c
rd178208 r5a8b2a2 152 152 } 153 153 154 /** Wrapper for SYS_ MAP_PHYSMEMsyscall.154 /** Wrapper for SYS_PHYSMEM_MAP syscall. 155 155 * 156 156 * @param phys_base Physical base address to map -
uspace/fb/ega.c
rd178208 r5a8b2a2 314 314 scr_addr = as_get_mappable_page(sz); 315 315 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, 317 317 AS_AREA_READ | AS_AREA_WRITE); 318 318 -
uspace/fb/fb.c
rd178208 r5a8b2a2 1285 1285 fb_addr = as_get_mappable_page(asz); 1286 1286 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, 1288 1288 AS_AREA_READ | AS_AREA_WRITE); 1289 1289 -
uspace/libc/generic/ddi.c
rd178208 r5a8b2a2 51 51 * was some problem in creating address space area. 52 52 */ 53 int map_physmem(void *pf, void *vp, unsigned long pages, int flags)53 int physmem_map(void *pf, void *vp, unsigned long pages, int flags) 54 54 { 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); 56 56 } 57 57 -
uspace/libc/include/ddi.h
rd178208 r5a8b2a2 38 38 #include <task.h> 39 39 40 extern int map_physmem(void *pf, void *vp, unsigned long pages, int flags);40 extern int physmem_map(void *pf, void *vp, unsigned long pages, int flags); 41 41 extern int iospace_enable(task_id_t id, void *ioaddr, unsigned long size); 42 42 extern int preemption_control(int enable); -
uspace/ns/ns.c
rd178208 r5a8b2a2 95 95 } 96 96 *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); 100 100 } 101 101 -
uspace/rd/rd.c
rd178208 r5a8b2a2 80 80 void * rd_addr = as_get_mappable_page(rd_size); 81 81 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); 83 83 84 84 return true;
Note:
See TracChangeset
for help on using the changeset viewer.