require '_h2ph_pre.ph';

unless(defined(&VM_H)) {
    eval 'sub VM_H () {1;}' unless defined(&VM_H);
    if(!defined( &UVM)) {
    }
    require 'sys/vmmeter.ph';
    require 'sys/queue.ph';
    require 'vm/vm_param.ph';
    require 'sys/lock.ph';
    require 'vm/vm_prot.ph';
    require 'vm/pmap.ph';
    require 'vm/vm_inherit.ph';
    require 'vm/vm_map.ph';
    require 'vm/vm_object.ph';
    require 'vm/vm_extern.ph';
    eval 'sub vm_startcopy () { &vm_rssize;}' unless defined(&vm_startcopy);
    if(defined(&pmap_resident_count)) {
	eval 'sub vm_resident_count {
	    local($vm) = @_;
    	    eval q(( &pmap_resident_count(($vm)-> ($vm_map->{pmap}))));
	}' unless defined(&vm_resident_count);
    } else {
	eval 'sub vm_resident_count {
	    local($vm) = @_;
    	    eval q((($vm)-> &vm_rssize));
	}' unless defined(&vm_resident_count);
    }
}
1;
