Skip site navigation (1)Skip section navigation (2)
Date:      20 Oct 2001 02:11:03 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        alpha@freebsd.org, dfr@freebsd.org, jake@freebsd.org, benno@freebsd.org
Subject:   machdep.c patches
Message-ID:  <xzpitdbmaqw.fsf@flood.ping.uio.no>

next in thread | raw e-mail | index | archive | help
--=-=-=

The attached patch adds dummy {set,fill}_dbregs() to machdep.c on
every architecture (except i386, which already has real ones).  This
will allow retiring procfs_machdep.c as there will no longer be any MD
code in it (the only difference between procfs_machdep.c on the
different architectures is whether it calls {set,fill}_dbregs() or
just returns ENOSYS right away).

Unless there are objections, I will commit this sometime next week.

DES
-- 
Dag-Erling Smorgrav - des@ofug.org


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment; filename=machdep.diff

Index: sys/alpha/alpha/machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/alpha/alpha/machdep.c,v
retrieving revision 1.148
diff -u -r1.148 machdep.c
--- sys/alpha/alpha/machdep.c	19 Oct 2001 19:22:04 -0000	1.148
+++ sys/alpha/alpha/machdep.c	20 Oct 2001 00:02:19 -0000
@@ -1877,6 +1877,20 @@
 }
 
 int
+fill_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
+set_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
 fill_fpregs(td, fpregs)
 	struct thread *td;
 	struct fpreg *fpregs;
Index: sys/ia64/ia64/machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/ia64/ia64/machdep.c,v
retrieving revision 1.57
diff -u -r1.57 machdep.c
--- sys/ia64/ia64/machdep.c	18 Oct 2001 16:20:04 -0000	1.57
+++ sys/ia64/ia64/machdep.c	18 Oct 2001 23:04:44 -0000
@@ -1274,6 +1274,20 @@
 }
 
 int
+fill_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
+set_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
 fill_fpregs(td, fpregs)
 	struct thread *td;
 	struct fpreg *fpregs;
Index: sys/powerpc/powerpc/machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/powerpc/powerpc/machdep.c,v
retrieving revision 1.11
diff -u -r1.11 machdep.c
--- sys/powerpc/powerpc/machdep.c	12 Oct 2001 19:55:04 -0000	1.11
+++ sys/powerpc/powerpc/machdep.c	13 Oct 2001 15:27:36 -0000
@@ -849,6 +849,13 @@
 }
 
 int
+fill_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
 fill_fpregs(struct proc *p, struct fpreg *fpregs)
 {
 
@@ -857,6 +864,13 @@
 
 int
 set_regs(struct proc *p, struct reg *regs)
+{
+
+	return (ENOSYS);
+}
+
+int
+set_dbregs(struct proc *p, struct dbreg *dbregs)
 {
 
 	return (ENOSYS);
Index: sys/sparc64/sparc64/machdep.c
===================================================================
RCS file: /home/ncvs/src/sys/sparc64/sparc64/machdep.c,v
retrieving revision 1.17
diff -u -r1.17 machdep.c
--- sys/sparc64/sparc64/machdep.c	12 Oct 2001 16:06:36 -0000	1.17
+++ sys/sparc64/sparc64/machdep.c	13 Oct 2001 15:27:39 -0000
@@ -581,6 +581,20 @@
 }
 
 int
+fill_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
+set_dbregs(struct proc *p, struct dbreg *dbregs)
+{
+
+	return (ENOSYS);
+}
+
+int
 fill_fpregs(struct thread *td, struct fpreg *fpregs)
 {
 	struct pcb *pcb;

--=-=-=--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpitdbmaqw.fsf>