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:
e49a5bd
)
x86,kgdb: Always initialize the hw breakpoint attribute
author
Jason Wessel
<
[email protected]
>
Tue, 30 Mar 2010 19:05:07 +0000
(14:05 -0500)
committer
Frederic Weisbecker
<
[email protected]
>
Thu, 1 Apr 2010 06:26:32 +0000
(08:26 +0200)
It is required to call hw_breakpoint_init() on an attr before using it
in any other calls. This fixes the problem where kgdb will sometimes
fail to initialize on x86_64.
Signed-off-by: Jason Wessel <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: 2.6.33 <
[email protected]
>
LKML-Reference: <
1269975907
[email protected]
>
Signed-off-by: Frederic Weisbecker <
[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 bfba6019d762aa6652e58b3b09681a83b2e74525..b2258ca9100349c2618d00e4aadf8c7cdd62bb26 100644
(file)
--- a/
arch/x86/kernel/kgdb.c
+++ b/
arch/x86/kernel/kgdb.c
@@
-618,8
+618,8
@@
int kgdb_arch_init(void)
* portion of kgdb because this operation requires mutexs to
* complete.
*/
+ hw_breakpoint_init(&attr);
attr.bp_addr = (unsigned long)kgdb_arch_init;
- attr.type = PERF_TYPE_BREAKPOINT;
attr.bp_len = HW_BREAKPOINT_LEN_1;
attr.bp_type = HW_BREAKPOINT_W;
attr.disabled = 1;