Not yet working stack checking (symbol STACKCHECK)
[gnokii.git] / gnokii / mcount.c
1 #ifdef GNOKII_MAIN
2 #include "config.h"
3 #endif
4
5 #ifdef STACKCHECK
6
7 #include <stdio.h>
8
9 void mcount(void)
10 {
11 #ifdef __m68k__X
12 static void *arg;
13
14 #if 0
15         asm("movel %%a0,%0" : "=r" (arg) : /* input */ : "a0");
16 #endif
17         asm("movel %%fp@(+4),%0" : "=r" (arg) : /* input */);
18
19         printf("mcount(0x%08lX)\n",(long)arg);
20 #endif /* __m68k__ */
21 #ifdef LIVEX
22         LIVE;
23 #endif /* LIVE */
24 }
25
26 #endif /* STACKCHECK */