require '_h2ph_pre.ph';

unless(defined(&_MAC68K_PARAM_H_)) {
    eval 'sub _MAC68K_PARAM_H_ () {1;}' unless defined(&_MAC68K_PARAM_H_);
    require 'machine/psl.ph';
    require 'machine/intr.ph';
    eval 'sub _MACHINE () { &mac68k;}' unless defined(&_MACHINE);
    eval 'sub MACHINE () {"mac68k";}' unless defined(&MACHINE);
    eval 'sub PGSHIFT () {12;}' unless defined(&PGSHIFT);
    eval 'sub KERNBASE () {0x00000000;}' unless defined(&KERNBASE);
    eval 'sub SEGSHIFT () {22;}' unless defined(&SEGSHIFT);
    eval 'sub NBSEG () {(1<<  &SEGSHIFT);}' unless defined(&NBSEG);
    eval 'sub SEGOFSET () {( &NBSEG-1);}' unless defined(&SEGOFSET);
    eval 'sub UPAGES () {3;}' unless defined(&UPAGES);
    require 'm68k/param.ph';
    eval 'sub NPTEPG () {( &NBPG/($sizeof{ &pt_entry_t}));}' unless defined(&NPTEPG);
    unless(defined(&NKMEMCLUSTERS)) {
	eval 'sub NKMEMCLUSTERS () {(2048* 1024/  &CLBYTES);}' unless defined(&NKMEMCLUSTERS);
    }
    if(defined( &_KERNEL)  && !defined( &_LOCORE)) {
	eval 'sub DELAY {
	    local($ms) = @_;
    	    eval q( &delay($ms));
	}' unless defined(&DELAY);
    }
}
1;
