require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_I386_PTE_H_)) {
    eval 'sub _I386_PTE_H_ () {1;}' unless defined(&_I386_PTE_H_);
    if(!defined( &_LOCORE)) {
    }
    eval 'sub PDSHIFT () {22;}' unless defined(&PDSHIFT);
    eval 'sub NBPD () {(1<<  &PDSHIFT);}' unless defined(&NBPD);
    eval 'sub PDOFSET () {( &NBPD-1);}' unless defined(&PDOFSET);
    if(0) {
	eval 'sub NPTEPD () {( &NBPD /  &NBPG);}' unless defined(&NPTEPD);
    } else {
	eval 'sub PTES_PER_PTP () {( &NBPD /  &NBPG);}' unless defined(&PTES_PER_PTP);
    }
    eval 'sub PD_MASK () {0xffc00000;}' unless defined(&PD_MASK);
    eval 'sub PT_MASK () {0x3ff000;}' unless defined(&PT_MASK);
    eval 'sub PG_V () {0x1;}' unless defined(&PG_V);
    eval 'sub PG_RO () {0x;}' unless defined(&PG_RO);
    eval 'sub PG_RW () {0x2;}' unless defined(&PG_RW);
    eval 'sub PG_u () {0x4;}' unless defined(&PG_u);
    eval 'sub PG_PROT () {0x806;}' unless defined(&PG_PROT);
    eval 'sub PG_N () {0x18;}' unless defined(&PG_N);
    eval 'sub PG_U () {0x20;}' unless defined(&PG_U);
    eval 'sub PG_M () {0x40;}' unless defined(&PG_M);
    eval 'sub PG_PS () {0x80;}' unless defined(&PG_PS);
    eval 'sub PG_G () {0x100;}' unless defined(&PG_G);
    eval 'sub PG_AVAIL1 () {0x200;}' unless defined(&PG_AVAIL1);
    eval 'sub PG_AVAIL2 () {0x400;}' unless defined(&PG_AVAIL2);
    eval 'sub PG_AVAIL3 () {0x800;}' unless defined(&PG_AVAIL3);
    eval 'sub PG_FRAME () {0xfffff000;}' unless defined(&PG_FRAME);
    eval 'sub PG_LGFRAME () {0xffc00000;}' unless defined(&PG_LGFRAME);
    eval 'sub PG_KR () {0x;}' unless defined(&PG_KR);
    eval 'sub PG_KW () {0x2;}' unless defined(&PG_KW);
    eval 'sub PGEX_P () {0x1;}' unless defined(&PGEX_P);
    eval 'sub PGEX_W () {0x2;}' unless defined(&PGEX_W);
    eval 'sub PGEX_U () {0x4;}' unless defined(&PGEX_U);
    eval 'sub PGEX_I () {0x10;}' unless defined(&PGEX_I);
}
1;
