diff options
author | Andrew Turner <andrew@FreeBSD.org> | 2021-08-27 09:38:40 +0000 |
---|---|---|
committer | Andrew Turner <andrew@FreeBSD.org> | 2021-08-30 11:50:53 +0000 |
commit | b792434150d66b9b2356fb9a7548f4c7f0a0f16c (patch) | |
tree | fd9dee6c0d9f0d2b1896c2620bd1e52747dcb278 /sys/mips/include | |
parent | a9472032211ddb06cd7d73b941c335b16550b558 (diff) | |
download | src-b792434150d66b9b2356fb9a7548f4c7f0a0f16c.tar.gz src-b792434150d66b9b2356fb9a7548f4c7f0a0f16c.zip |
Create sys/reg.h for the common code previously in machine/reg.h
Move the common kernel function signatures from machine/reg.h to a new
sys/reg.h. This is in preperation for adding PT_GETREGSET to ptrace(2).
Reviewed by: imp, markj
Sponsored by: DARPA, AFRL (original work)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D19830
Diffstat (limited to 'sys/mips/include')
-rw-r--r-- | sys/mips/include/md_var.h | 2 | ||||
-rw-r--r-- | sys/mips/include/reg.h | 16 |
2 files changed, 1 insertions, 17 deletions
diff --git a/sys/mips/include/md_var.h b/sys/mips/include/md_var.h index 8462b1beb22e..b322c4d6323a 100644 --- a/sys/mips/include/md_var.h +++ b/sys/mips/include/md_var.h @@ -36,7 +36,7 @@ #ifndef _MACHINE_MD_VAR_H_ #define _MACHINE_MD_VAR_H_ -#include <machine/reg.h> +#include <machine/regnum.h> /* * Miscellaneous machine-dependent declarations. diff --git a/sys/mips/include/reg.h b/sys/mips/include/reg.h index a1f5aa4da23c..440b791bffc7 100644 --- a/sys/mips/include/reg.h +++ b/sys/mips/include/reg.h @@ -85,23 +85,7 @@ struct dbreg32 { #define __HAVE_REG32 #endif -#ifdef _KERNEL -int fill_fpregs(struct thread *, struct fpreg *); -int fill_regs(struct thread *, struct reg *); -int set_fpregs(struct thread *, struct fpreg *); -int set_regs(struct thread *, struct reg *); -int fill_dbregs(struct thread *, struct dbreg *); -int set_dbregs(struct thread *, struct dbreg *); -#endif - #ifdef COMPAT_FREEBSD32 -struct image_params; - -int fill_regs32(struct thread *, struct reg32 *); -int set_regs32(struct thread *, struct reg32 *); -int fill_fpregs32(struct thread *, struct fpreg32 *); -int set_fpregs32(struct thread *, struct fpreg32 *); - #define fill_dbregs32(td, reg) 0 #define set_dbregs32(td, reg) 0 #endif |