mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-24 12:40:24 +00:00
oprofile: fix oops on x86 32-bit
x86 32-bit isn't saving the stack pointer to pt_regs->esp when an interrupt occurs. Signed-off-by: Jan Blunck <jblunck@suse.de> Tested-by: Robert Fitzsimons <robfitz@273k.net> Cc: Andi Kleen <ak@suse.de> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Philippe Elie <phil.el@wanadoo.fr> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
35d5d08a08
commit
77f2878b4f
@ -60,7 +60,7 @@ static inline int v8086_mode(struct pt_regs *regs)
|
||||
|
||||
#define instruction_pointer(regs) ((regs)->eip)
|
||||
#define frame_pointer(regs) ((regs)->ebp)
|
||||
#define stack_pointer(regs) ((regs)->esp)
|
||||
#define stack_pointer(regs) ((unsigned long)(regs))
|
||||
#define regs_return_value(regs) ((regs)->eax)
|
||||
|
||||
extern unsigned long profile_pc(struct pt_regs *regs);
|
||||
|
Loading…
Reference in New Issue
Block a user