The object type can't be OBJT_PHYS in vm_mmap().

Reviewed by:	peter
This commit is contained in:
mux 2003-03-30 00:56:20 +00:00
parent 88a3831a18
commit 478d776b15

View File

@ -1215,7 +1215,7 @@ vm_mmap(vm_map_t map, vm_offset_t *addr, vm_size_t size, vm_prot_t prot,
/*
* Force device mappings to be shared.
*/
if (type == OBJT_DEVICE || type == OBJT_PHYS) {
if (type == OBJT_DEVICE) {
flags &= ~(MAP_PRIVATE|MAP_COPY);
flags |= MAP_SHARED;
}