* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
* %sccs.include.redist.c%
* @(#)profile.h 8.1 (Berkeley) %G%
#define _MCOUNT_DECL static inline void _mcount
extern void mcount() 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); \
* The following two macros do splhigh and splx respectively.
* They have to be defined this way because these are real
* functions on the HP, and we do not want to invoke mcount
asm("movw sr,%0" : "=g" (s)); \
asm("movw %0,sr" : : "g" (s))