about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/x86_64
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2003-04-30 10:03:25 +0000
committerAndreas Jaeger <aj@suse.de>2003-04-30 10:03:25 +0000
commit2ece7975705bc6a4d4ac178d34fa068bc58ce549 (patch)
treeb88351e7cdce495900feb7024f70b9a9d1738713 /sysdeps/unix/sysv/linux/x86_64
parentf773ff644a0d28c44ba41fd4dab95cb9ab7b862f (diff)
downloadglibc-2ece7975705bc6a4d4ac178d34fa068bc58ce549.tar.gz
glibc-2ece7975705bc6a4d4ac178d34fa068bc58ce549.tar.xz
glibc-2ece7975705bc6a4d4ac178d34fa068bc58ce549.zip
(DR_CONTROL_RESERVED): Use correct value for 64-bit.
Reported by Andrew Derrick Balsa <andrebalsa@mailingaddress.org>. 
Add bi-arch support.
Diffstat (limited to 'sysdeps/unix/sysv/linux/x86_64')
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h b/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
index f40d4375e6..8abbf7546f 100644
--- a/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
+++ b/sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -18,6 +18,7 @@
 
 #ifndef _SYS_DEBUGREG_H
 #define _SYS_DEBUGREG_H	1
+#include <bits/wordsize.h>
 
 /* Indicate the register numbers for a number of the specific
    debug registers.  Registers 0-3 contain the addresses we wish to trap on */
@@ -73,7 +74,14 @@
 
 /* The second byte to the control register has a few special
    things.  */
-#define DR_CONTROL_RESERVED (0xFC00) /* Reserved */
+
+
+
+#if __WORDSIZE == 64
+# define DR_CONTROL_RESERVED (0xFFFFFFFF0000FC00UL) /* Reserved */
+#else
+# define DR_CONTROL_RESERVED (0x00FC00U) /* Reserved */
+#endif
 #define DR_LOCAL_SLOWDOWN   (0x100)  /* Local slow the pipeline */
 #define DR_GLOBAL_SLOWDOWN  (0x200)  /* Global slow the pipeline */