require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_MACHINE_VMPARAM_H_)) {
    eval 'sub _MACHINE_VMPARAM_H_ () {1;}' unless defined(&_MACHINE_VMPARAM_H_);
    eval 'sub USRTEXT () { &NBPG;}' unless defined(&USRTEXT);
    eval 'sub USRSTACK () {(( &vaddr_t)0x200000000);}' unless defined(&USRSTACK);
    unless(defined(&MAXTSIZ)) {
	eval 'sub MAXTSIZ () {(1*1024*1024*1024);}' unless defined(&MAXTSIZ);
    }
    unless(defined(&DFLDSIZ)) {
	eval 'sub DFLDSIZ () {(128*1024*1024);}' unless defined(&DFLDSIZ);
    }
    unless(defined(&MAXDSIZ)) {
	eval 'sub MAXDSIZ () {(1*1024*1024*1024);}' unless defined(&MAXDSIZ);
    }
    unless(defined(&BRKSIZ)) {
	eval 'sub BRKSIZ () { &MAXDSIZ;}' unless defined(&BRKSIZ);
    }
    unless(defined(&DFLSSIZ)) {
	eval 'sub DFLSSIZ () {(2*1024*1024);}' unless defined(&DFLSSIZ);
    }
    unless(defined(&MAXSSIZ)) {
	eval 'sub MAXSSIZ () {(32*1024*1024);}' unless defined(&MAXSSIZ);
    }
    eval 'sub STACKGAP_RANDOM () {256*1024;}' unless defined(&STACKGAP_RANDOM);
    unless(defined(&USRIOSIZE)) {
	eval 'sub USRIOSIZE () {64;}' unless defined(&USRIOSIZE);
    }
    unless(defined(&SHMMAXPGS)) {
	eval 'sub SHMMAXPGS () {4096;}' unless defined(&SHMMAXPGS);
    }
    eval 'sub VM_MIN_ADDRESS () {(( &vaddr_t) &PAGE_SIZE);}' unless defined(&VM_MIN_ADDRESS);
    eval 'sub VM_MAXUSER_ADDRESS () {(( &vaddr_t)( &ALPHA_USEG_END + 1));}' unless defined(&VM_MAXUSER_ADDRESS);
    eval 'sub VM_MAX_ADDRESS () { &VM_MAXUSER_ADDRESS;}' unless defined(&VM_MAX_ADDRESS);
    eval 'sub VM_MIN_KERNEL_ADDRESS () {(( &vaddr_t) &ALPHA_K1SEG_BASE);}' unless defined(&VM_MIN_KERNEL_ADDRESS);
    eval 'sub VM_MAX_KERNEL_ADDRESS () {(( &vaddr_t) &ALPHA_K1SEG_END);}' unless defined(&VM_MAX_KERNEL_ADDRESS);
    eval 'sub VM_PIE_MIN_ADDR () { &PAGE_SIZE;}' unless defined(&VM_PIE_MIN_ADDR);
    eval 'sub VM_PIE_MAX_ADDR () {0x80000000;}' unless defined(&VM_PIE_MAX_ADDR);
    eval 'sub VM_PHYS_SIZE () {( &USRIOSIZE* &NBPG);}' unless defined(&VM_PHYS_SIZE);
    eval 'sub VPTBASE () {(( &vaddr_t)0xfffffffc00000000);}' unless defined(&VPTBASE);
    eval 'sub VM_PHYSSEG_MAX () {16;}' unless defined(&VM_PHYSSEG_MAX);
    eval 'sub VM_PHYSSEG_STRAT () { &VM_PSTRAT_BSEARCH;}' unless defined(&VM_PHYSSEG_STRAT);
    eval 'sub VM_PHYSSEG_NOADD () {1;}' unless defined(&VM_PHYSSEG_NOADD);
    eval 'sub __HAVE_PMAP_PHYSSEG () {1;}' unless defined(&__HAVE_PMAP_PHYSSEG);
}
1;
