Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Move some definitions. Add comment. No functional c...



details:   https://anonhg.NetBSD.org/src/rev/64ca7ccacf72
branches:  trunk
changeset: 372797:64ca7ccacf72
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Tue Dec 27 08:40:40 2022 +0000

description:
Move some definitions. Add comment. No functional change.

diffstat:

 sys/arch/amd64/amd64/genassym.cf |   6 +++---
 sys/arch/i386/i386/genassym.cf   |  17 ++++++++---------
 2 files changed, 11 insertions(+), 12 deletions(-)

diffs (86 lines):

diff -r 8df4d3911a81 -r 64ca7ccacf72 sys/arch/amd64/amd64/genassym.cf
--- a/sys/arch/amd64/amd64/genassym.cf  Tue Dec 27 08:38:37 2022 +0000
+++ b/sys/arch/amd64/amd64/genassym.cf  Tue Dec 27 08:40:40 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.92 2022/12/26 15:52:37 msaitoh Exp $
+#      $NetBSD: genassym.cf,v 1.93 2022/12/27 08:40:40 msaitoh Exp $
 
 #
 # Copyright (c) 1998, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -165,6 +165,7 @@
 define L_MD_FLAGS              offsetof(struct lwp, l_md.md_flags)
 define L_MD_ASTPENDING         offsetof(struct lwp, l_md.md_astpending)
 
+define LW_SYSTEM               LW_SYSTEM
 define MDL_IRET                MDL_IRET
 define MDL_COMPAT32            MDL_COMPAT32
 define MDL_FPU_IN_CPU          MDL_FPU_IN_CPU
@@ -173,8 +174,6 @@
 define P_RASLIST               offsetof(struct proc, p_raslist)
 define P_MD_SYSCALL            offsetof(struct proc, p_md.md_syscall)
 
-define LW_SYSTEM               LW_SYSTEM
-
 # pcb fields
 define PCB_CR3                 offsetof(struct pcb, pcb_cr3)
 define PCB_CR0                 offsetof(struct pcb, pcb_cr0)
@@ -349,6 +348,7 @@
 define IP_SRC                  offsetof(struct ip, ip_src)
 define IP_DST                  offsetof(struct ip, ip_dst)
 
+# Locking
 define MTX_IPL                 offsetof(struct kmutex, u.s.mtxs_ipl)
 define MTX_LOCK                offsetof(struct kmutex, u.s.mtxs_lock)
 define MTX_OWNER               offsetof(struct kmutex, u.mtxa_owner)
diff -r 8df4d3911a81 -r 64ca7ccacf72 sys/arch/i386/i386/genassym.cf
--- a/sys/arch/i386/i386/genassym.cf    Tue Dec 27 08:38:37 2022 +0000
+++ b/sys/arch/i386/i386/genassym.cf    Tue Dec 27 08:40:40 2022 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: genassym.cf,v 1.130 2022/12/26 15:52:37 msaitoh Exp $
+#      $NetBSD: genassym.cf,v 1.131 2022/12/27 08:40:40 msaitoh Exp $
 
 #
 # Copyright (c) 1998, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -154,6 +154,9 @@
 define PDP_SIZE                PDP_SIZE
 define PDE_SIZE                sizeof(pd_entry_t)
 
+define GUFS_SEL                GUFS_SEL
+define GUGS_SEL                GUGS_SEL
+
 define IOMAPSIZE               IOMAPSIZE
 
 define VM_MAXUSER_ADDRESS      (int)VM_MAXUSER_ADDRESS
@@ -171,20 +174,13 @@
 define L_MD_FLAGS              offsetof(struct lwp, l_md.md_flags)
 define L_MD_ASTPENDING         offsetof(struct lwp, l_md.md_astpending)
 
+define LW_SYSTEM               LW_SYSTEM
 define MDL_FPU_IN_CPU          MDL_FPU_IN_CPU
 
 define P_FLAG                  offsetof(struct proc, p_flag)
 define P_RASLIST               offsetof(struct proc, p_raslist)
 define P_MD_SYSCALL            offsetof(struct proc, p_md.md_syscall)
 
-define LW_SYSTEM               LW_SYSTEM
-
-define GUFS_SEL                GUFS_SEL
-define GUGS_SEL                GUGS_SEL
-
-define IP6_SRC                 offsetof(struct ip6_hdr, ip6_src)
-define IP6_DST                 offsetof(struct ip6_hdr, ip6_dst)
-
 # pcb fields
 define PCB_CR3                 offsetof(struct pcb, pcb_cr3)
 define PCB_CR0                 offsetof(struct pcb, pcb_cr0)
@@ -349,7 +345,10 @@
 define M_NEXT                  offsetof(struct mbuf, m_next)
 define IP_SRC                  offsetof(struct ip, ip_src)
 define IP_DST                  offsetof(struct ip, ip_dst)
+define IP6_SRC                 offsetof(struct ip6_hdr, ip6_src)
+define IP6_DST                 offsetof(struct ip6_hdr, ip6_dst)
 
+# Locking
 define MTX_IPL                 offsetof(struct kmutex, u.s.mtxs_ipl)
 define MTX_LOCK                offsetof(struct kmutex, mtx_lock)
 define MTX_OWNER               offsetof(struct kmutex, u.mtxa_owner)



Home | Main Index | Thread Index | Old Index