summaryrefslogtreecommitdiffstats
path: root/sys/ia64/include
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2001-10-21 22:16:48 +0000
committerdes <des@FreeBSD.org>2001-10-21 22:16:48 +0000
commit68ea04e86493611196c5c3e77f3479fb9eb464c5 (patch)
treed90558a2f0e0f8b1f7dd8cd8feb4961cf92408f6 /sys/ia64/include
parent8cf224f4f00fc7f6d522b77fda68395daa503391 (diff)
downloadFreeBSD-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/ia64/include')
-rw-r--r--sys/ia64/include/md_var.h4
-rw-r--r--sys/ia64/include/reg.h10
2 files changed, 10 insertions, 4 deletions
diff --git a/sys/ia64/include/md_var.h b/sys/ia64/include/md_var.h
index f253860..874f383 100644
--- a/sys/ia64/include/md_var.h
+++ b/sys/ia64/include/md_var.h
@@ -47,10 +47,6 @@ void cpu_halt __P((void));
void cpu_reset __P((void));
int is_physical_memory __P((vm_offset_t addr));
void swi_vm __P((void *));
-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 ia64_running_in_simulator __P((void));
#endif /* !_MACHINE_MD_VAR_H_ */
diff --git a/sys/ia64/include/reg.h b/sys/ia64/include/reg.h
index 5ac4bfa..a12c6d5 100644
--- a/sys/ia64/include/reg.h
+++ b/sys/ia64/include/reg.h
@@ -58,7 +58,17 @@ struct thread;
void restorehighfp __P((struct ia64_fpreg *));
void savehighfp __P((struct ia64_fpreg *));
+
+/*
+ * XXX these interfaces are MI, so they should be declared in a MI place.
+ */
void setregs __P((struct thread *, u_long, u_long, u_long));
+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_ */
OpenPOWER on IntegriCloud