require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_AMD64_PTE_H_)) {
    eval 'sub _AMD64_PTE_H_ () {1;}' unless defined(&_AMD64_PTE_H_);
    if(!defined( &_LOCORE)) {
    }
    eval 'sub L1_SHIFT () {12;}' unless defined(&L1_SHIFT);
    eval 'sub L2_SHIFT () {21;}' unless defined(&L2_SHIFT);
    eval 'sub L3_SHIFT () {30;}' unless defined(&L3_SHIFT);
    eval 'sub L4_SHIFT () {39;}' unless defined(&L4_SHIFT);
    eval 'sub NBPD_L1 () {(1 <<  &L1_SHIFT);}' unless defined(&NBPD_L1);
    eval 'sub NBPD_L2 () {(1 <<  &L2_SHIFT);}' unless defined(&NBPD_L2);
    eval 'sub NBPD_L3 () {(1 <<  &L3_SHIFT);}' unless defined(&NBPD_L3);
    eval 'sub NBPD_L4 () {(1 <<  &L4_SHIFT);}' unless defined(&NBPD_L4);
    eval 'sub L4_MASK () {0xff8000000000;}' unless defined(&L4_MASK);
    eval 'sub L3_MASK () {0x7fc0000000;}' unless defined(&L3_MASK);
    eval 'sub L2_MASK () {0x3fe00000;}' unless defined(&L2_MASK);
    eval 'sub L1_MASK () {0x1ff000;}' unless defined(&L1_MASK);
    eval 'sub L4_FRAME () { &L4_MASK;}' unless defined(&L4_FRAME);
    eval 'sub L3_FRAME () {( &L4_FRAME| &L3_MASK);}' unless defined(&L3_FRAME);
    eval 'sub L2_FRAME () {( &L3_FRAME| &L2_MASK);}' unless defined(&L2_FRAME);
    eval 'sub L1_FRAME () {( &L2_FRAME| &L1_MASK);}' unless defined(&L1_FRAME);
    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 () {0x6;}' 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_NX () {0x8000000000000000;}' unless defined(&PG_NX);
    eval 'sub PG_FRAME () {0xffffffffff000;}' unless defined(&PG_FRAME);
    eval 'sub PG_LGFRAME () {0xfffffffc00000;}' 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;
