stackcheck: Fixed caller function detection
authorshort <>
Sat, 9 Mar 2002 23:25:41 +0000 (23:25 +0000)
committershort <>
Sat, 9 Mar 2002 23:25:41 +0000 (23:25 +0000)
gnokii/cleanup.c

index e93075d..82b1c48 100644 (file)
@@ -61,7 +61,7 @@ volatile void *func;
 volatile int fp_alloc;
 
        asm("movel %%d0,%0" : "=r" (fp_alloc) : /* input */ : "d0");
-       asm("movel %%sp@,%0" : "=r" (func) : /* input */);
+       asm("movel %%fp@(4),%0" : "=r" (func) : /* input */);
 
        if (inside)
                return;