require '_h2ph_pre.ph';

unless(defined(&_MCOUNT_DECL)) {
    sub _MCOUNT_DECL () {	 &static  &__inline  &void  &_mcount;}
}
unless(defined(&MCOUNT)) {
    sub MCOUNT () {	 &extern  &void  &mcount  &__P(( &void))  &__asm("mcount");  &void  &mcount() { 'int'  &selfpc,  &frompcindex;  &__asm("movl a6@(4),%0" : "=r" ( &selfpc));  &__asm("movl a6@(0)@(4),%0" : "=r" ( &frompcindex));  &_mcount( &frompcindex,  &selfpc); };}
}
if(defined(&_KERNEL)) {
    eval 'sub MCOUNT_ENTER () { &__asm("movw	sr,%0" : "=g" ( &s));  &__asm("movw	#0x2700,sr");}' unless defined(&MCOUNT_ENTER);
    eval 'sub MCOUNT_EXIT () { &__asm("movw	%0,sr" : : "g" ( &s));}' unless defined(&MCOUNT_EXIT);
}
1;
