summaryrefslogtreecommitdiffstats
path: root/sys/mips
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-07-24 13:50:29 +0000
committerjhb <jhb@FreeBSD.org>2009-07-24 13:50:29 +0000
commit44220d7e1e07bbf1c88215543c5877abcdb88d29 (patch)
tree9a9fb32ead80921ec7937e7a600e46e446366436 /sys/mips
parent4064b20ecefb589d0b9290e558c0abfc5229c120 (diff)
downloadFreeBSD-src-44220d7e1e07bbf1c88215543c5877abcdb88d29.zip
FreeBSD-src-44220d7e1e07bbf1c88215543c5877abcdb88d29.tar.gz
Add a new type of VM object: OBJT_SG. An OBJT_SG object is very similar to
a device pager (OBJT_DEVICE) object in that it uses fictitious pages to provide aliases to other memory addresses. The primary difference is that it uses an sglist(9) to determine the physical addresses for a given offset into the object instead of invoking the d_mmap() method in a device driver. Reviewed by: alc Approved by: re (kensmith) MFC after: 2 weeks
Diffstat (limited to 'sys/mips')
-rw-r--r--sys/mips/mips/pmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/pmap.c b/sys/mips/mips/pmap.c
index 4d414f6..7b106dc 100644
--- a/sys/mips/mips/pmap.c
+++ b/sys/mips/mips/pmap.c
@@ -2148,7 +2148,7 @@ pmap_object_init_pt(pmap_t pmap, vm_offset_t addr,
vm_object_t object, vm_pindex_t pindex, vm_size_t size)
{
VM_OBJECT_LOCK_ASSERT(object, MA_OWNED);
- KASSERT(object->type == OBJT_DEVICE,
+ KASSERT(object->type == OBJT_DEVICE || object->type == OBJT_SG,
("pmap_object_init_pt: non-device object"));
}
OpenPOWER on IntegriCloud