Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151934769
D55189.id171478.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D55189.id171478.diff
View Options
diff --git a/sys/arm/include/frame.h b/sys/arm/include/frame.h
--- a/sys/arm/include/frame.h
+++ b/sys/arm/include/frame.h
@@ -56,8 +56,11 @@
/*
* Trap frame. Pushed onto the kernel stack on a trap (synchronous exception).
+ *
+ * struct trapframe is known to and used by kernel debuggers. Its layout must
+ * be kept stable. When adding extra fields that are accessed by kernel
+ * debuggers, debuggers should be backward compatible by using osreldate.
*/
-
struct trapframe {
register_t tf_spsr;
register_t tf_r0;
diff --git a/sys/arm64/include/frame.h b/sys/arm64/include/frame.h
--- a/sys/arm64/include/frame.h
+++ b/sys/arm64/include/frame.h
@@ -42,6 +42,10 @@
/*
* NOTE: keep this structure in sync with struct reg and struct mcontext.
+ *
+ * struct trapframe is known to and used by kernel debuggers. Its layout must
+ * be kept stable. When adding extra fields that are accessed by kernel
+ * debuggers, debuggers should be backward compatible by using osreldate.
*/
struct trapframe {
uint64_t tf_sp;
diff --git a/sys/powerpc/include/frame.h b/sys/powerpc/include/frame.h
--- a/sys/powerpc/include/frame.h
+++ b/sys/powerpc/include/frame.h
@@ -48,6 +48,12 @@
*
* Change ordering to cluster together these register_t's. XXX
*/
+
+/*
+ * struct trapframe is known to and used by kernel debuggers. Its layout must
+ * be kept stable. When adding extra fields that are accessed by kernel
+ * debuggers, debuggers should be backward compatible by using osreldate.
+ */
struct trapframe {
register_t fixreg[32];
register_t lr;
diff --git a/sys/riscv/include/frame.h b/sys/riscv/include/frame.h
--- a/sys/riscv/include/frame.h
+++ b/sys/riscv/include/frame.h
@@ -42,6 +42,10 @@
/*
* NOTE: keep this structure in sync with struct reg and struct mcontext.
+ *
+ * struct trapframe is known to and used by kernel debuggers. Its layout must
+ * be kept stable. When adding extra fields that are accessed by kernel
+ * debuggers, debuggers should be backward compatible by using osreldate.
*/
struct trapframe {
uint64_t tf_ra;
diff --git a/sys/x86/include/frame.h b/sys/x86/include/frame.h
--- a/sys/x86/include/frame.h
+++ b/sys/x86/include/frame.h
@@ -43,6 +43,7 @@
#ifdef __i386__
/*
* Exception/Trap Stack Frame
+ * struct trapframe is known to and used by kernel debuggers.
*/
struct trapframe {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 12, 3:10 PM (2 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31355185
Default Alt Text
D55189.id171478.diff (2 KB)
Attached To
Mode
D55189: frame.h: mark struct trapframe to be preserved
Attached
Detach File
Event Timeline
Log In to Comment