Re: [RFC][PATCH] x86: don't destroy %rbp on kernel-mode faults

From: Andi Kleen
Date: Mon May 19 2008 - 17:17:19 EST

Vegard Nossum wrote:
> Hi,
> The RFC part of this patch is: Does anybody see why touching %rcx would
> be bad? It certainly looks like %ecx is free. This fixes the stacktrace
> problem I was seeing, and Pekka tested a bootup to userspace. (Pekka also
> did half of the debugging. When will git allow multiple authors for a
> patch? :-))

The patch is ok, but I'm sure there's lots of other assembler code that
destroys %rbp when it was saved elsewhere.

When I wrote all the assembler the assumption was always that a real
unwinder would be used for backtraces, not frame pointer.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at