summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-05-02 09:34:51 +0000
committerphk <phk@FreeBSD.org>1996-05-02 09:34:51 +0000
commit7bfc0101cb7b18e50bfb65137a0be725c51d26cb (patch)
treedc9ce6f01e6fe69eb3e4d0a274e9b8a8982294fc /sys/amd64
parente4ee69bc24265771337795e724a2f50a50cbc78b (diff)
downloadFreeBSD-src-7bfc0101cb7b18e50bfb65137a0be725c51d26cb.zip
FreeBSD-src-7bfc0101cb7b18e50bfb65137a0be725c51d26cb.tar.gz
KGDB is dead. It may come back one day if somebody does it.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/exception.S30
-rw-r--r--sys/amd64/amd64/exception.s30
2 files changed, 4 insertions, 56 deletions
diff --git a/sys/amd64/amd64/exception.S b/sys/amd64/amd64/exception.S
index 8a5e6d8..a7b4574 100644
--- a/sys/amd64/amd64/exception.S
+++ b/sys/amd64/amd64/exception.S
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: exception.s,v 1.15 1996/03/02 19:37:37 peter Exp $
+ * $Id: exception.s,v 1.16 1996/04/12 12:22:14 phk Exp $
*/
#include "npx.h" /* NNPX */
@@ -77,12 +77,7 @@ bdb_/**/name/**/_ljmp: ; \
#define BDBTRAP(name)
#endif
-#ifdef KGDB
-# define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; \
- pushl $(a) ; jmp _bpttraps
-#else
-# define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
-#endif
+#define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
MCOUNT_LABEL(user)
MCOUNT_LABEL(btrap)
@@ -190,27 +185,6 @@ calltrap:
MEXITCOUNT
jmp _doreti
-#ifdef KGDB
-/*
- * This code checks for a kgdb trap, then falls through
- * to the regular trap code.
- */
- SUPERALIGN_TEXT
-_bpttraps:
- pushal
- pushl %ds
- pushl %es
- movl $KDSEL,%eax
- movl %ax,%ds
- movl %ax,%es
- FAKE_MCOUNT(12*4(%esp))
- testb $SEL_RPL_MASK,TRAPF_CS_OFF(%esp) /* non-kernel mode? */
- jne calltrap /* yes */
- call _kgdb_trap_glue
- MEXITCOUNT
- jmp calltrap
-#endif
-
/*
* Call gate entry for syscall.
* The intersegment call has been set up to specify one dummy parameter.
diff --git a/sys/amd64/amd64/exception.s b/sys/amd64/amd64/exception.s
index 8a5e6d8..a7b4574 100644
--- a/sys/amd64/amd64/exception.s
+++ b/sys/amd64/amd64/exception.s
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: exception.s,v 1.15 1996/03/02 19:37:37 peter Exp $
+ * $Id: exception.s,v 1.16 1996/04/12 12:22:14 phk Exp $
*/
#include "npx.h" /* NNPX */
@@ -77,12 +77,7 @@ bdb_/**/name/**/_ljmp: ; \
#define BDBTRAP(name)
#endif
-#ifdef KGDB
-# define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; \
- pushl $(a) ; jmp _bpttraps
-#else
-# define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
-#endif
+#define BPTTRAP(a) testl $PSL_I,4+8(%esp) ; je 1f ; sti ; 1: ; TRAP(a)
MCOUNT_LABEL(user)
MCOUNT_LABEL(btrap)
@@ -190,27 +185,6 @@ calltrap:
MEXITCOUNT
jmp _doreti
-#ifdef KGDB
-/*
- * This code checks for a kgdb trap, then falls through
- * to the regular trap code.
- */
- SUPERALIGN_TEXT
-_bpttraps:
- pushal
- pushl %ds
- pushl %es
- movl $KDSEL,%eax
- movl %ax,%ds
- movl %ax,%es
- FAKE_MCOUNT(12*4(%esp))
- testb $SEL_RPL_MASK,TRAPF_CS_OFF(%esp) /* non-kernel mode? */
- jne calltrap /* yes */
- call _kgdb_trap_glue
- MEXITCOUNT
- jmp calltrap
-#endif
-
/*
* Call gate entry for syscall.
* The intersegment call has been set up to specify one dummy parameter.
OpenPOWER on IntegriCloud