require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_M88K_INTR_H_)) {
    eval 'sub _M88K_INTR_H_ () {1;}' unless defined(&_M88K_INTR_H_);
    if(defined(&_KERNEL)) {
	unless(defined(&_LOCORE)) {
	    if(defined(&DIAGNOSTIC)) {
		eval 'sub splassert {
		    my($__wantipl) = @_;
    		    eval q( &do {  &if ( &__predict_false( &splassert_ctl > 0)) {  &splassert_check($__wantipl,  &__func__); } }  &while (0));
		}' unless defined(&splassert);
	    } else {
		eval 'sub splassert {
		    my($wantipl) = @_;
    		    eval q( &do { }  &while (0));
		}' unless defined(&splassert);
	    }
	}
	eval 'sub splsoftclock () {
	    eval q( &raiseipl( &IPL_SOFTCLOCK));
	}' unless defined(&splsoftclock);
	eval 'sub splsoftnet () {
	    eval q( &raiseipl( &IPL_SOFTNET));
	}' unless defined(&splsoftnet);
	eval 'sub splbio () {
	    eval q( &raiseipl( &IPL_BIO));
	}' unless defined(&splbio);
	eval 'sub splnet () {
	    eval q( &raiseipl( &IPL_NET));
	}' unless defined(&splnet);
	eval 'sub spltty () {
	    eval q( &raiseipl( &IPL_TTY));
	}' unless defined(&spltty);
	eval 'sub splclock () {
	    eval q( &raiseipl( &IPL_CLOCK));
	}' unless defined(&splclock);
	eval 'sub splstatclock () {
	    eval q( &raiseipl( &IPL_STATCLOCK));
	}' unless defined(&splstatclock);
	eval 'sub splsched () {
	    eval q( &raiseipl( &IPL_SCHED));
	}' unless defined(&splsched);
	eval 'sub splvm () {
	    eval q( &raiseipl( &IPL_VM));
	}' unless defined(&splvm);
	eval 'sub splhigh () {
	    eval q( &setipl( &IPL_HIGH));
	}' unless defined(&splhigh);
	eval 'sub spllock () {
	    eval q( &splhigh());
	}' unless defined(&spllock);
	eval 'sub splx {
	    my($x) = @_;
    	    eval q((($x) ?  &setipl(($x)) :  &spl0()));
	}' unless defined(&splx);
    }
}
1;
