require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&__M88K_ATOMIC_H__)) {
    eval 'sub __M88K_ATOMIC_H__ () {1;}' unless defined(&__M88K_ATOMIC_H__);
    if(defined( &_KERNEL)) {
	if(defined(&MULTIPROCESSOR)) {
	} else {
	    require 'machine/asm_macro.ph';
	    require 'machine/psl.ph';
	    eval 'sub atomic_setbits_int {
	        my($uip,$v) = @_;
    		eval q({ \'u_int\'  &psr;  &psr =  &get_psr();  &set_psr( &psr |  &PSR_IND); *$uip |= $v;  &set_psr( &psr); });
	    }' unless defined(&atomic_setbits_int);
	    eval 'sub atomic_clearbits_int {
	        my($uip,$v) = @_;
    		eval q({ \'u_int\'  &psr;  &psr =  &get_psr();  &set_psr( &psr |  &PSR_IND); *$uip &= ~$v;  &set_psr( &psr); });
	    }' unless defined(&atomic_clearbits_int);
	}
    }
}
1;
