summaryrefslogtreecommitdiff
path: root/drivers/hwmon/g760a.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2011-03-18 19:54:32 +0300
committerDavid Howells <dhowells@redhat.com>2011-03-18 19:54:32 +0300
commit5141c46c6137f4866eb5f29e25ed0556bcc4c634 (patch)
tree321b2be3281fdc91a4f7d6b4e6c1bac272387f97 /drivers/hwmon/g760a.c
parent044264bbe34085b550e6429ce97ef310667be9dc (diff)
downloadlinux-5141c46c6137f4866eb5f29e25ed0556bcc4c634.tar.xz
MN10300: Emulate single stepping in KGDB on MN10300
Emulate single stepping in KGDB on MN10300 by way of temporary breakpoint insertion. These breakpoints are never actually seen by KGDB, and will overlay KGDB's own breakpoints. The breakpoints are removed by switch_to() and reinstalled on switching back so that if preemption occurs, the preempting task doesn't hit them (though it will still hit KGDB's regular breakpoints). If KGDB is reentered for any reason, then the single step breakpoint is completely erased and must be set again by the debugger. We take advantage of the fact that KGDB will effectively halt all other CPUs whilst this CPU is single-stepping to avoid SMP problems. If the single-stepping task is preempted and killed without KGDB being reinvoked, then the breakpoint(s) will be cleared and KGDB will be jumped back into. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/hwmon/g760a.c')
0 files changed, 0 insertions, 0 deletions