git: b1cd03dd2989 - main - <sys/reg.h>: Add ELF32_REGSET.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 23 Mar 2022 20:33:16 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b1cd03dd2989a125074f049b5795b1d6479ea632 commit b1cd03dd2989a125074f049b5795b1d6479ea632 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-03-23 20:33:06 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-03-23 20:33:06 +0000 <sys/reg.h>: Add ELF32_REGSET. This permits adding a register set for FREEBSD32 ABIs. While here, include <sys/linker_set.h> to make this header more self-contained in the kernel. Reviewed by: andrew, markj Sponsored by: The University of Cambridge, Google, Inc. Differential Revision: https://reviews.freebsd.org/D34536 --- sys/sys/reg.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/sys/reg.h b/sys/sys/reg.h index e06a5f9a19ed..97803498e2a0 100644 --- a/sys/sys/reg.h +++ b/sys/sys/reg.h @@ -41,6 +41,8 @@ #include <machine/reg.h> #ifdef _KERNEL +#include <sys/linker_set.h> + struct sbuf; struct regset; @@ -59,6 +61,10 @@ struct regset { SET_DECLARE(__elfN(regset), struct regset); #define ELF_REGSET(_regset) DATA_SET(__elfN(regset), _regset) #endif +#ifdef COMPAT_FREEBSD32 +SET_DECLARE(elf32_regset, struct regset); +#define ELF32_REGSET(_regset) DATA_SET(elf32_regset, _regset) +#endif int fill_regs(struct thread *, struct reg *); int set_regs(struct thread *, struct reg *);