summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/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/powerpc/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/powerpc/include')
-rw-r--r--sys/powerpc/include/md_var.h4
-rw-r--r--sys/powerpc/include/reg.h13
2 files changed, 12 insertions, 5 deletions
diff --git a/sys/powerpc/include/md_var.h b/sys/powerpc/include/md_var.h
index b2c0d07..6aeb26c 100644
--- a/sys/powerpc/include/md_var.h
+++ b/sys/powerpc/include/md_var.h
@@ -50,9 +50,5 @@ 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 proc *, struct reg *));
-int set_regs __P((struct proc *, struct reg *));
-int fill_fpregs __P((struct proc *, struct fpreg *));
-int set_fpregs __P((struct proc *, struct fpreg *));
#endif /* !_MACHINE_MD_VAR_H_ */
diff --git a/sys/powerpc/include/reg.h b/sys/powerpc/include/reg.h
index a05e566..a37bbab 100644
--- a/sys/powerpc/include/reg.h
+++ b/sys/powerpc/include/reg.h
@@ -22,6 +22,17 @@ struct dbreg {
unsigned long junk;
};
-void setregs(struct thread *, u_long, u_long, u_long);
+#ifdef _KERNEL
+/*
+ * 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 /* _POWERPC_REG_H_ */
OpenPOWER on IntegriCloud