X-Git-Url: http://git.jankratochvil.net/?p=gnokii.git;a=blobdiff_plain;f=gnokii%2Fmcount.c;fp=gnokii%2Fmcount.c;h=cf40629edaf1f730d931be348c7e7ee4c6299ea7;hp=0000000000000000000000000000000000000000;hb=81b1712d54efa46b3148a5beb42d32d7632ef30c;hpb=28c1f486126d510c51033eea2385d61a11ebe789 diff --git a/gnokii/mcount.c b/gnokii/mcount.c new file mode 100644 index 0000000..cf40629 --- /dev/null +++ b/gnokii/mcount.c @@ -0,0 +1,26 @@ +#ifdef GNOKII_MAIN +#include "config.h" +#endif + +#ifdef STACKCHECK + +#include + +void mcount(void) +{ +#ifdef __m68k__X +static void *arg; + +#if 0 + asm("movel %%a0,%0" : "=r" (arg) : /* input */ : "a0"); +#endif + asm("movel %%fp@(+4),%0" : "=r" (arg) : /* input */); + + printf("mcount(0x%08lX)\n",(long)arg); +#endif /* __m68k__ */ +#ifdef LIVEX + LIVE; +#endif /* LIVE */ +} + +#endif /* STACKCHECK */