From ef394d81adc7d70aa41449a2af808645ede81a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Sun, 21 Oct 2001 22:14:00 +0000 Subject: [PATCH] {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 {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. --- sys/alpha/alpha/machdep.c | 15 ++++++++++++++- sys/ia64/ia64/machdep.c | 15 ++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/sys/alpha/alpha/machdep.c b/sys/alpha/alpha/machdep.c index c4a3e1b92e0..38bcc516d93 100644 --- a/sys/alpha/alpha/machdep.c +++ b/sys/alpha/alpha/machdep.c @@ -143,7 +143,6 @@ #include #include #include -#include #include u_int64_t cycles_per_usec; @@ -1876,6 +1875,20 @@ set_regs(td, regs) return (0); } +int +fill_dbregs(struct thread *td, struct dbreg *dbregs) +{ + + return (ENOSYS); +} + +int +set_dbregs(struct thread *td, struct dbreg *dbregs) +{ + + return (ENOSYS); +} + int fill_fpregs(td, fpregs) struct thread *td; diff --git a/sys/ia64/ia64/machdep.c b/sys/ia64/ia64/machdep.c index dae75b0123e..557b213ddbc 100644 --- a/sys/ia64/ia64/machdep.c +++ b/sys/ia64/ia64/machdep.c @@ -75,7 +75,6 @@ #include #include #include -#include #include #include #include @@ -1273,6 +1272,20 @@ set_regs(td, regs) return (0); } +int +fill_dbregs(struct thread *td, struct dbreg *dbregs) +{ + + return (ENOSYS); +} + +int +set_dbregs(struct thread *td, struct dbreg *dbregs) +{ + + return (ENOSYS); +} + int fill_fpregs(td, fpregs) struct thread *td;