mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]> Tested-by: Robert Fitzsimons <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Philippe Elie <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
35d5d08a08
commit
77f2878b4f
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue