require '_h2ph_pre.ph';

unless(defined(&_MACHINE_PSL_H_)) {
    eval 'sub _MACHINE_PSL_H_ () {1;}' unless defined(&_MACHINE_PSL_H_);
    require 'm68k/psl.ph';
    if(defined( &_KERNEL)  && !defined( &_LOCORE)) {
	if(!defined( &IPL_REMAP_1)  && !defined( &IPL_REMAP_2)) {
	}
	if(defined(&IPL_REMAP_1)) {
	}
	if(defined(&IPL_REMAP_2)) {
	}
	eval 'sub spl1 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL1));
	}' unless defined(&spl1);
	eval 'sub spl2 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL2));
	}' unless defined(&spl2);
	eval 'sub spl3 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL3));
	}' unless defined(&spl3);
	eval 'sub spl4 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL4));
	}' unless defined(&spl4);
	eval 'sub spl5 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL5));
	}' unless defined(&spl5);
	eval 'sub spl6 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL6));
	}' unless defined(&spl6);
	eval 'sub spl7 () {
	    eval q( &splexact( &PSL_S| &PSL_IPL7));
	}' unless defined(&spl7);
	eval 'sub splbio () {
	    eval q( &spl3());
	}' unless defined(&splbio);
	eval 'sub splnet () {
	    eval q( &spl3());
	}' unless defined(&splnet);
	eval 'sub spltty () {
	    eval q( &splexact( &amiga_ttyspl));
	}' unless defined(&spltty);
	eval 'sub splimp () {
	    eval q( &spltty());
	}' unless defined(&splimp);
	if(defined( &LEV6_DEFER) || defined( &IPL_REMAP_1) || defined( &IPL_REMAP_2)) {
	    eval 'sub splclock () {
	        eval q( &spl4());
	    }' unless defined(&splclock);
	} else {
	    eval 'sub splclock () {
	        eval q( &spl6());
	    }' unless defined(&splclock);
	}
	eval 'sub splstatclock () {
	    eval q( &splclock());
	}' unless defined(&splstatclock);
	eval 'sub spllowersoftclock () {
	    eval q( &spllower( &PSL_S| &PSL_IPL1));
	}' unless defined(&spllowersoftclock);
	eval 'sub splsoftclock () {
	    eval q( &spl1());
	}' unless defined(&splsoftclock);
	eval 'sub splsoftnet () {
	    eval q( &spl1());
	}' unless defined(&splsoftnet);
	eval 'sub splsofttty () {
	    eval q( &spl1());
	}' unless defined(&splsofttty);
	if(defined( &LEV6_DEFER) || defined( &IPL_REMAP_1) || defined( &IPL_REMAP_2)) {
	    eval 'sub splhigh () {
	        eval q( &spl4());
	    }' unless defined(&splhigh);
	} else {
	    eval 'sub splhigh () {
	        eval q( &spl7());
	    }' unless defined(&splhigh);
	}
	eval 'sub spl0 () {
	    eval q( &spllower( &PSL_S| &PSL_IPL0));
	}' unless defined(&spl0);
    }
}
1;
