summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-08-03 04:21:51 +0000
committerjeff <jeff@FreeBSD.org>2005-08-03 04:21:51 +0000
commitbbf3c9f8158f29ed24b1133b7804395a64a09c68 (patch)
tree24b044e46bb61e0a1681486b87b8a534532c4664
parent50b149d376ed48b9a80dd9b8f0970bbbf2917929 (diff)
downloadFreeBSD-src-bbf3c9f8158f29ed24b1133b7804395a64a09c68.zip
FreeBSD-src-bbf3c9f8158f29ed24b1133b7804395a64a09c68.tar.gz
- Improve the definition of INKERNEL() to include the DMAP area and the
proper start of the kernel area. Discussed with: peter
-rw-r--r--sys/amd64/amd64/db_trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c
index ecdf277..e48eff8 100644
--- a/sys/amd64/amd64/db_trace.c
+++ b/sys/amd64/amd64/db_trace.c
@@ -178,7 +178,8 @@ db_ss(struct db_variable *vp, db_expr_t *valuep, int op)
/*
* Stack trace.
*/
-#define INKERNEL(va) (((vm_offset_t)(va)) >= USRSTACK)
+#define INKERNEL(va) (((va) >= DMAP_MIN_ADDRESS && (va) < DMAP_MAX_ADDRESS) \
+ || (va) >= KERNBASE)
struct amd64_frame {
struct amd64_frame *f_frame;
OpenPOWER on IntegriCloud