Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150470871
D32599.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
D32599.diff
View Options
diff --git a/sys/amd64/linux/linux.h b/sys/amd64/linux/linux.h
--- a/sys/amd64/linux/linux.h
+++ b/sys/amd64/linux/linux.h
@@ -459,7 +459,7 @@
struct reg;
-void bsd_to_linux_regset(struct reg *b_reg,
+void bsd_to_linux_regset(const struct reg *b_reg,
struct linux_pt_regset *l_regset);
#endif /* !_AMD64_LINUX_H_ */
diff --git a/sys/amd64/linux/linux_machdep.c b/sys/amd64/linux/linux_machdep.c
--- a/sys/amd64/linux/linux_machdep.c
+++ b/sys/amd64/linux/linux_machdep.c
@@ -299,7 +299,7 @@
}
void
-bsd_to_linux_regset(struct reg *b_reg, struct linux_pt_regset *l_regset)
+bsd_to_linux_regset(const struct reg *b_reg, struct linux_pt_regset *l_regset)
{
l_regset->r15 = b_reg->r_r15;
diff --git a/sys/amd64/linux32/linux.h b/sys/amd64/linux32/linux.h
--- a/sys/amd64/linux32/linux.h
+++ b/sys/amd64/linux32/linux.h
@@ -634,7 +634,7 @@
struct reg32;
-void bsd_to_linux_regset32(struct reg32 *b_reg,
+void bsd_to_linux_regset32(const struct reg32 *b_reg,
struct linux_pt_regset32 *l_regset);
#endif /* !_AMD64_LINUX_H_ */
diff --git a/sys/amd64/linux32/linux32_machdep.c b/sys/amd64/linux32/linux32_machdep.c
--- a/sys/amd64/linux32/linux32_machdep.c
+++ b/sys/amd64/linux32/linux32_machdep.c
@@ -678,7 +678,8 @@
}
void
-bsd_to_linux_regset32(struct reg32 *b_reg, struct linux_pt_regset32 *l_regset)
+bsd_to_linux_regset32(const struct reg32 *b_reg,
+ struct linux_pt_regset32 *l_regset)
{
l_regset->ebx = b_reg->r_ebx;
diff --git a/sys/arm64/linux/linux.h b/sys/arm64/linux/linux.h
--- a/sys/arm64/linux/linux.h
+++ b/sys/arm64/linux/linux.h
@@ -322,7 +322,7 @@
struct reg;
-void bsd_to_linux_regset(struct reg *b_reg,
+void bsd_to_linux_regset(const struct reg *b_reg,
struct linux_pt_regset *l_regset);
#endif /* _ARM64_LINUX_H_ */
diff --git a/sys/arm64/linux/linux_machdep.c b/sys/arm64/linux/linux_machdep.c
--- a/sys/arm64/linux/linux_machdep.c
+++ b/sys/arm64/linux/linux_machdep.c
@@ -133,7 +133,7 @@
}
void
-bsd_to_linux_regset(struct reg *b_reg, struct linux_pt_regset *l_regset)
+bsd_to_linux_regset(const struct reg *b_reg, struct linux_pt_regset *l_regset)
{
KASSERT(sizeof(l_regset->x) == sizeof(b_reg->x) + sizeof(l_ulong),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 2, 12:17 PM (11 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30722269
Default Alt Text
D32599.diff (2 KB)
Attached To
Mode
D32599: linux: Constify bsd_to_linux_regset()
Attached
Detach File
Event Timeline
Log In to Comment