Re: [PATCH 2.6.17-rc4 5/6] Add kmemleak support for ARM

Jesper Juhl
2006-05-13T18:25:20Z

On 5/13/06, Catalin Marinas <catalin.marinas@gmail.com> wrote:
> From: Catalin Marinas <catalin.marinas@arm.com>
>
> This patch modifies the vmlinux.lds.S script and adds the backtrace support
> for ARM to be used with kmemleak.
>
[snip]
> +static inline unsigned long arch_call_address(void *frame)
> +{
> + return *(unsigned long *) (frame - 4) - 4;

return *(unsigned long *)(frame - 4) - 4;

> +}
> +
> +static inline void *arch_prev_frame(void *frame)
> +{
> + return *(void **) (frame - 12);

return *(void **)(frame - 12);

--
Jesper Juhl <jesper.juhl@gmail.com>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html