Page MenuHomeFreeBSD

D60668.id189646.diff
No OneTemporary

D60668.id189646.diff

diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c
--- a/sys/kern/kern_thread.c
+++ b/sys/kern/kern_thread.c
@@ -105,24 +105,24 @@
_Static_assert(offsetof(struct proc, p_emuldata) == 0x4d0,
"struct proc KBI p_emuldata");
#endif
-#ifdef __i386__
+#ifdef __arm__
_Static_assert(offsetof(struct thread, td_flags) == 0x9c,
"struct thread KBI td_flags");
_Static_assert(offsetof(struct thread, td_pflags) == 0xa8,
"struct thread KBI td_pflags");
-_Static_assert(offsetof(struct thread, td_frame) == 0x33c,
+_Static_assert(offsetof(struct thread, td_frame) == 0x360,
"struct thread KBI td_frame");
-_Static_assert(offsetof(struct thread, td_emuldata) == 0x380,
+_Static_assert(offsetof(struct thread, td_emuldata) == 0x3b4,
"struct thread KBI td_emuldata");
-_Static_assert(offsetof(struct proc, p_flag) == 0x6c,
+_Static_assert(offsetof(struct proc, p_flag) == 0x74,
"struct proc KBI p_flag");
-_Static_assert(offsetof(struct proc, p_pid) == 0x78,
+_Static_assert(offsetof(struct proc, p_pid) == 0x80,
"struct proc KBI p_pid");
-_Static_assert(offsetof(struct proc, p_filemon) == 0x270,
+_Static_assert(offsetof(struct proc, p_filemon) == 0x298,
"struct proc KBI p_filemon");
-_Static_assert(offsetof(struct proc, p_comm) == 0x288,
+_Static_assert(offsetof(struct proc, p_comm) == 0x2b0,
"struct proc KBI p_comm");
-_Static_assert(offsetof(struct proc, p_emuldata) == 0x31c,
+_Static_assert(offsetof(struct proc, p_emuldata) == 0x354,
"struct proc KBI p_emuldata");
#endif
diff --git a/sys/sys/user.h b/sys/sys/user.h
--- a/sys/sys/user.h
+++ b/sys/sys/user.h
@@ -339,7 +339,7 @@
struct sockaddr_storage kf_sa_peer; /* Peer address. */
};
-#if defined(__amd64__) || defined(__i386__)
+#if defined(__amd64__) || defined(__arm__)
/*
* This size should never be changed. If you really need to, you must provide
* backward ABI compatibility by allocating a new sysctl MIB that will return
@@ -583,7 +583,7 @@
int _kve_ispare[3]; /* Space for more stuff. */
};
-#if defined(__amd64__) || defined(__i386__)
+#if defined(__amd64__) || defined(__arm__)
#define KINFO_VMENTRY_SIZE 1160
#endif
@@ -664,7 +664,7 @@
#define KKST_STATE_SWAPPED 1 /* Stack swapped out, obsolete. */
#define KKST_STATE_RUNNING 2 /* Stack ephemeral. */
-#if defined(__amd64__) || defined(__i386__)
+#if defined(__amd64__) || defined(__arm__)
#define KINFO_KSTACK_SIZE 1096
#endif

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 13, 9:00 PM (15 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40770559
Default Alt Text
D60668.id189646.diff (2 KB)

Event Timeline