require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_I386_PSL_H_)) {
    eval 'sub _I386_PSL_H_ () {1;}' unless defined(&_I386_PSL_H_);
    eval 'sub PSL_C () {0x1;}' unless defined(&PSL_C);
    eval 'sub PSL_PF () {0x4;}' unless defined(&PSL_PF);
    eval 'sub PSL_AF () {0x10;}' unless defined(&PSL_AF);
    eval 'sub PSL_Z () {0x40;}' unless defined(&PSL_Z);
    eval 'sub PSL_N () {0x80;}' unless defined(&PSL_N);
    eval 'sub PSL_T () {0x100;}' unless defined(&PSL_T);
    eval 'sub PSL_I () {0x200;}' unless defined(&PSL_I);
    eval 'sub PSL_D () {0x400;}' unless defined(&PSL_D);
    eval 'sub PSL_V () {0x800;}' unless defined(&PSL_V);
    eval 'sub PSL_IOPL () {0x3000;}' unless defined(&PSL_IOPL);
    eval 'sub PSL_NT () {0x4000;}' unless defined(&PSL_NT);
    eval 'sub PSL_RF () {0x10000;}' unless defined(&PSL_RF);
    eval 'sub PSL_VM () {0x20000;}' unless defined(&PSL_VM);
    eval 'sub PSL_AC () {0x40000;}' unless defined(&PSL_AC);
    eval 'sub PSL_VIF () {0x80000;}' unless defined(&PSL_VIF);
    eval 'sub PSL_VIP () {0x100000;}' unless defined(&PSL_VIP);
    eval 'sub PSL_ID () {0x200000;}' unless defined(&PSL_ID);
    eval 'sub PSL_XCRYPT () {0x40000000;}' unless defined(&PSL_XCRYPT);
    eval 'sub PSL_MBO () {0x2;}' unless defined(&PSL_MBO);
    eval 'sub PSL_MBZ () {0xffc08028;}' unless defined(&PSL_MBZ);
    eval 'sub PSL_USERSET () {( &PSL_MBO |  &PSL_I);}' unless defined(&PSL_USERSET);
    if(defined(&VM86)) {
	eval 'sub PSL_USERSTATIC () {( &PSL_MBO |  &PSL_MBZ |  &PSL_I |  &PSL_IOPL |  &PSL_NT |  &PSL_VIF |  &PSL_VIP);}' unless defined(&PSL_USERSTATIC);
    } else {
	eval 'sub PSL_USERSTATIC () {( &PSL_MBO |  &PSL_MBZ |  &PSL_I |  &PSL_IOPL |  &PSL_NT |  &PSL_VM |  &PSL_VIF |  &PSL_VIP);}' unless defined(&PSL_USERSTATIC);
    }
    if(defined(&_KERNEL)) {
	require 'machine/intr.ph';
	unless(defined(&_LOCORE)) {
	    require 'sys/evcount.ph';
	}
    }
}
1;
