summaryrefslogtreecommitdiffstats
path: root/src/arch/i386/core/gdbmach.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2008-06-13 21:11:41 +0200
committerMichael Brown2008-06-30 20:19:48 +0200
commitfe79edfc3d95ec5aa86248f11eba1fd37c073533 (patch)
treec0e329c328525e92dfa1fad413c9cac0204f2acb /src/arch/i386/core/gdbmach.c
parent[GDB] UDP clean up and add netdev refcnt (diff)
downloadipxe-fe79edfc3d95ec5aa86248f11eba1fd37c073533.tar.gz
ipxe-fe79edfc3d95ec5aa86248f11eba1fd37c073533.tar.xz
ipxe-fe79edfc3d95ec5aa86248f11eba1fd37c073533.zip
[GDB] Remove unused DR6 debug register variable
Diffstat (limited to 'src/arch/i386/core/gdbmach.c')
-rw-r--r--src/arch/i386/core/gdbmach.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/arch/i386/core/gdbmach.c b/src/arch/i386/core/gdbmach.c
index e4aa2d2d..26fab609 100644
--- a/src/arch/i386/core/gdbmach.c
+++ b/src/arch/i386/core/gdbmach.c
@@ -44,7 +44,6 @@ struct hwbp {
static struct hwbp hwbps [ 4 ];
static gdbreg_t dr7 = DR7_CLEAR;
-static gdbreg_t dr6;
static struct hwbp *gdbmach_find_hwbp ( int type, unsigned long addr, size_t len ) {
struct hwbp *available = NULL;
@@ -131,14 +130,14 @@ int gdbmach_set_breakpoint ( int type, unsigned long addr, size_t len, int enabl
}
static void gdbmach_disable_hwbps ( void ) {
- /* Store and clear breakpoint status register */
- __asm__ __volatile__ ( "movl %%dr6, %0\n" "movl %1, %%dr6\n" : "=r" ( dr6 ) : "r" ( DR6_CLEAR ) );
-
/* Store and clear hardware breakpoints */
__asm__ __volatile__ ( "movl %0, %%dr7\n" : : "r" ( DR7_CLEAR ) );
}
static void gdbmach_enable_hwbps ( void ) {
+ /* Clear breakpoint status register */
+ __asm__ __volatile__ ( "movl %0, %%dr6\n" : : "r" ( DR6_CLEAR ) );
+
/* Restore hardware breakpoints */
__asm__ __volatile__ ( "movl %0, %%dr7\n" : : "r" ( dr7 ) );
}