stackcheck: Fixed caller function detection
[gnokii.git] / 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;