From owner-freebsd-alpha Fri Oct 19 17:11:12 2001 Delivered-To: freebsd-alpha@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id A98DC37B401; Fri, 19 Oct 2001 17:11:06 -0700 (PDT) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 469C214C2E; Sat, 20 Oct 2001 02:11:04 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: alpha@freebsd.org, dfr@freebsd.org, jake@freebsd.org, benno@freebsd.org Subject: machdep.c patches From: Dag-Erling Smorgrav Date: 20 Oct 2001 02:11:03 +0200 Message-ID: Lines: 15 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --=-=-= 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