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:
parent
50b8e3efaf
commit
3417c29851
@ -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_ */
|
||||
|
@ -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;
|
||||
|
@ -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_ */
|
||||
|
@ -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;
|
||||
|
@ -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_ */
|
||||
|
@ -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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user