From 6ab203b6cab304a5b453d5363ebd316e0c2ead06 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 7 Feb 2001 22:41:47 +0000 Subject: [PATCH] When SMPng was first committed, we removed 'cpl' from the interrupt frame. Teach ddb about this as there is one less word for it to skip over when finding a trapframe on the interrupt frame stack. --- sys/amd64/amd64/db_trace.c | 2 +- sys/i386/i386/db_trace.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/amd64/amd64/db_trace.c b/sys/amd64/amd64/db_trace.c index 676b0dc4ba50..add84d9f5423 100644 --- a/sys/amd64/amd64/db_trace.c +++ b/sys/amd64/amd64/db_trace.c @@ -214,7 +214,7 @@ db_nextframe(fp, ip) } break; case INTERRUPT: - tf = (struct trapframe *)((int)*fp + 16); + tf = (struct trapframe *)((int)*fp + 12); if (INKERNEL((int) tf)) { eip = tf->tf_eip; ebp = tf->tf_ebp; diff --git a/sys/i386/i386/db_trace.c b/sys/i386/i386/db_trace.c index 676b0dc4ba50..add84d9f5423 100644 --- a/sys/i386/i386/db_trace.c +++ b/sys/i386/i386/db_trace.c @@ -214,7 +214,7 @@ db_nextframe(fp, ip) } break; case INTERRUPT: - tf = (struct trapframe *)((int)*fp + 16); + tf = (struct trapframe *)((int)*fp + 12); if (INKERNEL((int) tf)) { eip = tf->tf_eip; ebp = tf->tf_ebp;