projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e047aa
)
sched/x86/64, kgdb: Clear GDB_PS on 64-bit
author
Brian Gerst
<
[email protected]
>
Sat, 13 Aug 2016 16:38:17 +0000
(12:38 -0400)
committer
Ingo Molnar
<
[email protected]
>
Wed, 24 Aug 2016 10:27:40 +0000
(12:27 +0200)
switch_to() no longer saves EFLAGS, so it's bogus to look for it on the
stack. Set it to zero like 32-bit.
Signed-off-by: Brian Gerst <
[email protected]
>
Reviewed-by: Josh Poimboeuf <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Denys Vlasenko <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Jason Wessel <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/kgdb.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/kgdb.c
b/arch/x86/kernel/kgdb.c
index fe649a5f509f8ca72355b2cd8b697ba54df59731..5e3f294ce264664391c2aa4e7016ca101191c8b3 100644
(file)
--- a/
arch/x86/kernel/kgdb.c
+++ b/
arch/x86/kernel/kgdb.c
@@
-176,7
+176,7
@@
void sleeping_thread_to_gdb_regs(unsigned long *gdb_regs, struct task_struct *p)
gdb_regs[GDB_FS] = 0xFFFF;
gdb_regs[GDB_GS] = 0xFFFF;
#else
- gdb_regs32[GDB_PS] =
*(unsigned long *)(p->thread.sp + 8)
;
+ gdb_regs32[GDB_PS] =
0
;
gdb_regs32[GDB_CS] = __KERNEL_CS;
gdb_regs32[GDB_SS] = __KERNEL_DS;
gdb_regs[GDB_R8] = 0;