mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
<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
This commit is contained in:
parent
41c4e1c7f7
commit
b1cd03dd29
@ -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 *);
|
||||
|
Loading…
Reference in New Issue
Block a user