diff options
-rw-r--r-- | sys/alpha/include/md_var.h | 4 | ||||
-rw-r--r-- | sys/alpha/include/reg.h | 10 | ||||
-rw-r--r-- | sys/amd64/include/md_var.h | 3 | ||||
-rw-r--r-- | sys/amd64/include/reg.h | 9 | ||||
-rw-r--r-- | sys/i386/include/md_var.h | 3 | ||||
-rw-r--r-- | sys/i386/include/reg.h | 9 | ||||
-rw-r--r-- | sys/ia64/include/md_var.h | 4 | ||||
-rw-r--r-- | sys/ia64/include/reg.h | 10 | ||||
-rw-r--r-- | sys/powerpc/aim/machdep.c | 23 | ||||
-rw-r--r-- | sys/powerpc/include/md_var.h | 4 | ||||
-rw-r--r-- | sys/powerpc/include/reg.h | 13 | ||||
-rw-r--r-- | sys/powerpc/powerpc/machdep.c | 23 | ||||
-rw-r--r-- | sys/sparc64/include/md_var.h | 2 | ||||
-rw-r--r-- | sys/sparc64/include/reg.h | 10 | ||||
-rw-r--r-- | sys/sparc64/sparc64/machdep.c | 14 |
15 files changed, 101 insertions, 40 deletions
diff --git a/sys/alpha/include/md_var.h b/sys/alpha/include/md_var.h index b4fdfe4..8a90433 100644 --- a/sys/alpha/include/md_var.h +++ b/sys/alpha/include/md_var.h @@ -50,10 +50,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 *)); void alpha_register_pci_scsi __P((int bus, int slot, struct cam_sim *sim)); #ifdef _SYS_BUS_H_ struct resource *alpha_platform_alloc_ide_intr(int chan); diff --git a/sys/alpha/include/reg.h b/sys/alpha/include/reg.h index b4a73f3..d71df0a 100644 --- a/sys/alpha/include/reg.h +++ b/sys/alpha/include/reg.h @@ -110,7 +110,17 @@ struct dbreg { #ifdef _KERNEL void restorefpstate __P((struct fpreg *)); void savefpstate __P((struct 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 /* _ALPHA_REG_H_ */ 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_ */ diff --git a/sys/i386/include/md_var.h b/sys/i386/include/md_var.h index c2e2aa1..ab47a94 100644 --- a/sys/i386/include/md_var.h +++ b/sys/i386/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/i386/include/reg.h b/sys/i386/include/reg.h index f4c6ae5..3f3c774 100644 --- a/sys/i386/include/reg.h +++ b/sys/i386/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_ */ 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_ */ diff --git a/sys/powerpc/aim/machdep.c b/sys/powerpc/aim/machdep.c index 0261c27..9432ddb 100644 --- a/sys/powerpc/aim/machdep.c +++ b/sys/powerpc/aim/machdep.c @@ -109,7 +109,6 @@ static const char rcsid[] = #include <dev/ofw/openfirm.h> #include <ddb/ddb.h> #include <sys/vnode.h> -#include <fs/procfs/procfs.h> #include <machine/sigframe.h> int physmem = 0; @@ -842,28 +841,42 @@ Debugger(const char *msg) /* XXX: dummy {fill,set}_[fp]regs */ int -fill_regs(struct proc *p, struct reg *regs) +fill_regs(struct thread *td, struct reg *regs) { return (ENOSYS); } int -fill_fpregs(struct proc *p, struct fpreg *fpregs) +fill_dbregs(struct thread *td, struct dbreg *dbregs) { return (ENOSYS); } int -set_regs(struct proc *p, struct reg *regs) +fill_fpregs(struct thread *td, struct fpreg *fpregs) { return (ENOSYS); } int -set_fpregs(struct proc *p, struct fpreg *fpregs) +set_regs(struct thread *td, struct reg *regs) +{ + + return (ENOSYS); +} + +int +set_dbregs(struct thread *td, struct dbreg *dbregs) +{ + + return (ENOSYS); +} + +int +set_fpregs(struct thread *td, struct fpreg *fpregs) { return (ENOSYS); 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_ */ diff --git a/sys/powerpc/powerpc/machdep.c b/sys/powerpc/powerpc/machdep.c index 0261c27..9432ddb 100644 --- a/sys/powerpc/powerpc/machdep.c +++ b/sys/powerpc/powerpc/machdep.c @@ -109,7 +109,6 @@ static const char rcsid[] = #include <dev/ofw/openfirm.h> #include <ddb/ddb.h> #include <sys/vnode.h> -#include <fs/procfs/procfs.h> #include <machine/sigframe.h> int physmem = 0; @@ -842,28 +841,42 @@ Debugger(const char *msg) /* XXX: dummy {fill,set}_[fp]regs */ int -fill_regs(struct proc *p, struct reg *regs) +fill_regs(struct thread *td, struct reg *regs) { return (ENOSYS); } int -fill_fpregs(struct proc *p, struct fpreg *fpregs) +fill_dbregs(struct thread *td, struct dbreg *dbregs) { return (ENOSYS); } int -set_regs(struct proc *p, struct reg *regs) +fill_fpregs(struct thread *td, struct fpreg *fpregs) { return (ENOSYS); } int -set_fpregs(struct proc *p, struct fpreg *fpregs) +set_regs(struct thread *td, struct reg *regs) +{ + + return (ENOSYS); +} + +int +set_dbregs(struct thread *td, struct dbreg *dbregs) +{ + + return (ENOSYS); +} + +int +set_fpregs(struct thread *td, struct fpreg *fpregs) { return (ENOSYS); diff --git a/sys/sparc64/include/md_var.h b/sys/sparc64/include/md_var.h index 418e4b3..dcbdc5b 100644 --- a/sys/sparc64/include/md_var.h +++ b/sys/sparc64/include/md_var.h @@ -45,8 +45,6 @@ struct reg; void cpu_halt(void); void cpu_identify(u_int clock); void cpu_reset(void); -int fill_fpregs(struct thread *td, struct fpreg *fpregs); -int fill_regs(struct thread *td, struct reg *regs); int is_physical_memory(vm_offset_t addr); void swi_vm(void *v); diff --git a/sys/sparc64/include/reg.h b/sys/sparc64/include/reg.h index 80fe01a..1d77eb9 100644 --- a/sys/sparc64/include/reg.h +++ b/sys/sparc64/include/reg.h @@ -71,9 +71,13 @@ struct dbreg { /* * XXX these interfaces are MI, so they should be declared in a MI place. */ -int set_fpregs(struct thread *td, struct fpreg *fpregs); -int set_regs(struct thread *td, struct reg *regs); -void setregs(struct thread *td, u_long e, u_long s, u_long ps); +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_ */ diff --git a/sys/sparc64/sparc64/machdep.c b/sys/sparc64/sparc64/machdep.c index c7592ad..30631c0 100644 --- a/sys/sparc64/sparc64/machdep.c +++ b/sys/sparc64/sparc64/machdep.c @@ -597,6 +597,20 @@ set_regs(struct thread *td, struct reg *regs) } 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(struct thread *td, struct fpreg *fpregs) { struct pcb *pcb; |