require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_PMAP_VM_)) {
    eval 'sub _PMAP_VM_ () {1;}' unless defined(&_PMAP_VM_);
    require 'machine/pmap.ph';
    eval 'sub PMAP_WIRED () {0x10;}' unless defined(&PMAP_WIRED);
    eval 'sub PMAP_CANFAIL () {0x20;}' unless defined(&PMAP_CANFAIL);
    eval 'sub PMAP_MD0 () {0x40;}' unless defined(&PMAP_MD0);
    eval 'sub PMAP_MD1 () {0x80;}' unless defined(&PMAP_MD1);
    eval 'sub PMAP_MD2 () {0x100;}' unless defined(&PMAP_MD2);
    eval 'sub PMAP_MD3 () {0x200;}' unless defined(&PMAP_MD3);
    unless(defined(&PMAP_EXCLUDE_DECLS)) {
	if(defined(&_KERNEL)) {
	    unless(defined(&pmap_activate)) {
	    }
	    unless(defined(&pmap_deactivate)) {
	    }
	    unless(defined(&pmap_unwire)) {
	    }
	    if(!defined(&pmap_clear_modify)) {
	    }
	    if(!defined(&pmap_clear_reference)) {
	    }
	    if(!defined(&pmap_collect)) {
	    }
	    if(!defined(&pmap_copy)) {
	    }
	    if(!defined(&pmap_copy_page)) {
	    }
	    if(defined(&PMAP_GROWKERNEL)) {
	    }
	    if(!defined(&pmap_is_modified)) {
	    }
	    if(!defined(&pmap_is_referenced)) {
	    }
	    if(!defined(&pmap_proc_iflush)) {
	    }
	    if(!defined(&pmap_reference)) {
	    }
	    if(!defined(&pmap_remove)) {
	    }
	    if(!defined(&pmap_remove_holes)) {
	    }
	    if(!defined(&pmap_update)) {
	    }
	    if(!defined(&pmap_zero_page)) {
	    }
	    if(defined(&PMAP_STEAL_MEMORY)) {
	    }
	    if(defined(&PMAP_FORK)) {
	    }
	}
    }
}
1;
