linux: Constify bsd_to_linux_regset()

No functional changes.

Reviewed By:	emaste
Sponsored By:	EPSRC
Differential Revision:	https://reviews.freebsd.org/D32599
This commit is contained in:
Edward Tomasz Napierala 2021-10-23 08:33:48 +01:00
parent 50b8e3efaf
commit 3417c29851
6 changed files with 7 additions and 6 deletions

View File

@ -459,7 +459,7 @@ struct linux_pt_regset {
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_ */

View File

@ -299,7 +299,7 @@ DEFINE_IFUNC(, int, futex_xorl, (int, uint32_t *, int *))
}
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;

View File

@ -634,7 +634,7 @@ struct linux_pt_regset32 {
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_ */

View File

@ -678,7 +678,8 @@ linux_set_thread_area(struct thread *td,
}
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;

View File

@ -322,7 +322,7 @@ struct linux_pt_regset {
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_ */

View File

@ -133,7 +133,7 @@ linux_set_cloned_tls(struct thread *td, void *desc)
}
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),