rem: TRACE(("query_tmap: returning pa 0x%x for va 0x%x\n", *out_physical, va));
context: clear_flags_tmap(vm_translation_map *map, addr_t va, uint32 flags){	ptentry *pt;	pdentry *pd = map->arch_data->pgdir_virt;	int index;	int err;	int tlb_flush = false;	index = VADDR_TO_PDENT(va);	if (pd[index].present == 0) {		// no pagetable here		return B_NO_ERROR;	}	do {		err = get_physical_page_tmap(ADDR_REVERSE_SHIFT(pd[index].addr), (addr_t *)&pt, PHYSICAL_PAGE_NO_WAIT);	} while (err < 0);	index = VADDR_TO_PTENT(va);	// clear out the flags we've been requested to clear	if (flags & PAGE_MODIFIED) {		pt[index].dirty = 0;		tlb_flush = true;	}	if (flags & PAGE_ACCESSED) {		pt[index].accessed = 0;		tlb_flush = true;	}	put_physical_page_tmap((addr_t)pt);	if (tlb_flush) {		if (map->arch_data->num_invalidate_pages < PAGE_INVALIDATE_CACHE_SIZE)			map->arch_data->pages_to_invalidate[map->arch_data->num_invalidate_pages] = va;		map->arch_data->num_invalidate_pages++;	}	TRACE(("query_tmap: returning pa 0x%x for va 0x%x\n", *out_physical, va));	return B_OK;}