drop the minix_ prefixes for mmap and munmap
also cleanup of various minix-specific changes, cleanup of mmap-related testing. Change-Id: I289a4fc50cf8a13df4a6082038d860853a4bd024
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ static struct vir_region *mmap_region(struct vmproc *vmp, vir_bytes addr,
|
||||
|
||||
if(vmm_flags & MAP_LOWER16M) vrflags |= VR_LOWER16MB;
|
||||
if(vmm_flags & MAP_LOWER1M) vrflags |= VR_LOWER1MB;
|
||||
if(vmm_flags & MAP_ALIGN64K) vrflags |= VR_PHYS64K;
|
||||
if(vmm_flags & MAP_ALIGNMENT_64KB) vrflags |= VR_PHYS64K;
|
||||
if(vmm_flags & MAP_PREALLOC) mfflags |= MF_PREALLOC;
|
||||
if(vmm_flags & MAP_UNINITIALIZED) {
|
||||
if(!execpriv) return NULL;
|
||||
|
||||
@@ -272,7 +272,7 @@ int swap_proc_dyn_data(struct vmproc *src_vmp, struct vmproc *dst_vmp)
|
||||
return OK;
|
||||
}
|
||||
|
||||
void *minix_mmap(void *addr, size_t len, int f, int f2, int f3, off_t o)
|
||||
void *mmap(void *addr, size_t len, int f, int f2, int f3, off_t o)
|
||||
{
|
||||
void *ret;
|
||||
phys_bytes p;
|
||||
@@ -287,7 +287,7 @@ void *minix_mmap(void *addr, size_t len, int f, int f2, int f3, off_t o)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int minix_munmap(void * addr, size_t len)
|
||||
int munmap(void * addr, size_t len)
|
||||
{
|
||||
vm_freepages((vir_bytes) addr, roundup(len, VM_PAGE_SIZE)/VM_PAGE_SIZE);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user