diff options
author | des <des@FreeBSD.org> | 2001-10-21 22:16:48 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-10-21 22:16:48 +0000 |
commit | 68ea04e86493611196c5c3e77f3479fb9eb464c5 (patch) | |
tree | d90558a2f0e0f8b1f7dd8cd8feb4961cf92408f6 /sys/amd64 | |
parent | 8cf224f4f00fc7f6d522b77fda68395daa503391 (diff) | |
download | FreeBSD-src-68ea04e86493611196c5c3e77f3479fb9eb464c5.zip FreeBSD-src-68ea04e86493611196c5c3e77f3479fb9eb464c5.tar.gz |
[partially forced commit due to pilot error in earlier commit attempt]
{set,fill}_{,fp,db}regs() fixup:
- Add dummy {set,fill}_dbregs() on architectures that don't have them.
- KSEfy the powerpc versions (struct proc -> struct thread).
- Some architectures had the prototypes in md_var.h, some in reg.h, and
some in both; for consistency, move them to reg.h on all platforms.
These functions aren't really MD (the implementation is MD, but the interface
is MI), so they should move to an MI header, but I haven't figured out which
one yet.
Run-tested on i386, build-tested on Alpha, untested on other platforms.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/include/md_var.h | 3 | ||||
-rw-r--r-- | sys/amd64/include/reg.h | 9 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index c2e2aa1..ab47a94 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -79,9 +79,6 @@ void doreti_popl_es __P((void)) __asm(__STRING(doreti_popl_es)); void doreti_popl_es_fault __P((void)) __asm(__STRING(doreti_popl_es_fault)); void doreti_popl_fs __P((void)) __asm(__STRING(doreti_popl_fs)); void doreti_popl_fs_fault __P((void)) __asm(__STRING(doreti_popl_fs_fault)); -int fill_fpregs __P((struct thread *, struct fpreg *)); -int fill_regs __P((struct thread *p, struct reg *regs)); -int fill_dbregs __P((struct thread *p, struct dbreg *dbregs)); void fillw __P((int /*u_short*/ pat, void *base, size_t cnt)); void i486_bzero __P((void *buf, size_t len)); void i586_bcopy __P((const void *from, void *to, size_t len)); diff --git a/sys/amd64/include/reg.h b/sys/amd64/include/reg.h index f4c6ae5..3f3c774 100644 --- a/sys/amd64/include/reg.h +++ b/sys/amd64/include/reg.h @@ -143,10 +143,13 @@ struct dbreg { /* * XXX these interfaces are MI, so they should be declared in a MI place. */ -int set_fpregs __P((struct thread *, struct fpreg *)); -int set_regs __P((struct thread *p, struct reg *regs)); void setregs __P((struct thread *, u_long, u_long, u_long)); -int set_dbregs __P((struct thread *p, struct dbreg *dbregs)); +int fill_regs __P((struct thread *, struct reg *)); +int set_regs __P((struct thread *, struct reg *)); +int fill_fpregs __P((struct thread *, struct fpreg *)); +int set_fpregs __P((struct thread *, struct fpreg *)); +int fill_dbregs __P((struct thread *, struct dbreg *)); +int set_dbregs __P((struct thread *, struct dbreg *)); #endif #endif /* !_MACHINE_REG_H_ */ |