git: 717cf1d3e45f - stable/13 - <sys/reg.h>: Add ELF32_REGSET.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 May 2022 17:42:48 UTC
The branch stable/13 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=717cf1d3e45fb93c9d3a6abcc0738b98136d1c19 commit 717cf1d3e45fb93c9d3a6abcc0738b98136d1c19 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-03-23 20:33:06 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-13 00:02:44 +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 (cherry picked from commit b1cd03dd2989a125074f049b5795b1d6479ea632) --- 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 *);