aboutsummaryrefslogtreecommitdiff
path: root/sys/i386
diff options
context:
space:
mode:
authorMinsoo Choo <minsoochoo0122@proton.me>2026-02-06 20:03:53 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-02-09 04:17:16 +0000
commit8f23665fed2fbaf4481359b4d2fcdd7b9feb40e3 (patch)
tree94ad4006ebf97f623a37d5fc08d899204ef6a3cd /sys/i386
parent2088e742013bb1b9ca237a79767362efe92d9da8 (diff)
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/pcb.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/sys/i386/include/pcb.h b/sys/i386/include/pcb.h
index 1b14efa425b5..1385bfeeef31 100644
--- a/sys/i386/include/pcb.h
+++ b/sys/i386/include/pcb.h
@@ -44,16 +44,17 @@
#include <machine/npx.h>
/*
- * NB: The fields marked with (*) are used by kernel debuggers. Their
- * ABI should be preserved.
+ * struct pcb 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 pcb {
- int pcb_edi; /* (*) */
- int pcb_esi; /* (*) */
- int pcb_ebp; /* (*) */
- int pcb_esp; /* (*) */
- int pcb_ebx; /* (*) */
- int pcb_eip; /* (*) */
+ int pcb_edi;
+ int pcb_esi;
+ int pcb_ebp;
+ int pcb_esp;
+ int pcb_ebx;
+ int pcb_eip;
struct segment_descriptor pcb_fsd;
struct segment_descriptor pcb_gsd;
int pcb_ds;