io_map(vm_offset_t phys_addr, vm_size_t size, unsigned int flags)
{
vm_offset_t start;
- int i;
- unsigned int j, mflags;
+ vm_size_t i;
+ unsigned int mflags;
vm_page_t m;
mflags = mmFlgBlock | mmFlgUseAttr | (flags & VM_MEM_GUARDED) | ((flags & VM_MEM_NOT_CACHEABLE) >> 1); /* Convert to our mapping_make flags */