svn commit: r185985 - in stable/7/sys: . amd64/amd64 contrib/pf
dev/cxgb
Konstantin Belousov
kib at FreeBSD.org
Fri Dec 12 05:09:52 PST 2008
Author: kib
Date: Fri Dec 12 13:09:52 2008
New Revision: 185985
URL: http://svn.freebsd.org/changeset/base/185985
Log:
MFC r185634:
Improve db_backtrace() for compat ia32 on amd64. 32bit image enters
the kernel via Xint0x80_syscall().
Approved by: re (kensmith)
Modified:
stable/7/sys/ (props changed)
stable/7/sys/amd64/amd64/db_trace.c
stable/7/sys/contrib/pf/ (props changed)
stable/7/sys/dev/cxgb/ (props changed)
Modified: stable/7/sys/amd64/amd64/db_trace.c
==============================================================================
--- stable/7/sys/amd64/amd64/db_trace.c Fri Dec 12 12:12:36 2008 (r185984)
+++ stable/7/sys/amd64/amd64/db_trace.c Fri Dec 12 13:09:52 2008 (r185985)
@@ -27,6 +27,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_compat.h"
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kdb.h>
@@ -318,6 +320,10 @@ db_nextframe(struct amd64_frame **fp, db
frame_type = INTERRUPT;
else if (strcmp(name, "Xfast_syscall") == 0)
frame_type = SYSCALL;
+#ifdef COMPAT_IA32
+ else if (strcmp(name, "Xint0x80_syscall") == 0)
+ frame_type = SYSCALL;
+#endif
/* XXX: These are interrupts with trap frames. */
else if (strcmp(name, "Xtimerint") == 0 ||
strcmp(name, "Xcpustop") == 0 ||
More information about the svn-src-stable
mailing list