Subject: port-i386/32385: More proc * -> lwp * fallout, i386 machdep procfs & ptrace
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: Paul Shupak <paul@Plectere.com>
List: netbsd-bugs
Date: 12/25/2005 19:00:00
>Number: 32385
>Category: port-i386
>Synopsis: More proc * -> lwp * fallout, i386 machdep procfs & ptrace
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-i386-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Dec 25 19:00:00 +0000 2005
>Originator: Paul Shupak
>Release: NetBSD 3.99.15
>Organization:
>Environment:
System: NetBSD svcs 3.99.10 NetBSD 3.99.10 (SVCS) #22: Wed Oct 19 14:35:15 PDT 2005 root@svcs:/sys/arch/i386/compile/SVCS i386
Architecture: i386
Machine: i386
>Description:
Yet some more proc * -> lwp * substition fallout for i386, allows
one more file to compile, a few more still needed.
>How-To-Repeat:
Try to build a i386 kernel on -current.
>Fix:
Partial fix - trivial patch to /usr/src/sys/arch/i386/include/ptrace.h
Index: ptrace.h
===================================================================
RCS file: /cvsroot/src/sys/arch/i386/include/ptrace.h,v
retrieving revision 1.11
diff -c -r1.11 ptrace.h
*** ptrace.h 29 Jun 2003 22:28:27 -0000 1.11
--- ptrace.h 25 Dec 2005 18:58:55 -0000
***************
*** 125,139 ****
struct xmmregs;
/* Functions used by both ptrace(2) and procfs. */
! int process_machdep_doxmmregs(struct proc *, struct lwp *, struct uio *);
! int process_machdep_validxmmregs(struct proc *);
/* Functions used by procfs. */
struct mount;
struct pfsnode;
! int procfs_machdep_doxmmregs(struct proc *, struct lwp *,
struct pfsnode *, struct uio *);
! int procfs_machdep_validxmmregs(struct proc *, struct mount *);
#endif /* _KERNEL */
--- 125,139 ----
struct xmmregs;
/* Functions used by both ptrace(2) and procfs. */
! int process_machdep_doxmmregs(struct lwp *, struct lwp *, struct uio *);
! int process_machdep_validxmmregs(struct lwp *);
/* Functions used by procfs. */
struct mount;
struct pfsnode;
! int procfs_machdep_doxmmregs(struct lwp *, struct lwp *,
struct pfsnode *, struct uio *);
! int procfs_machdep_validxmmregs(struct lwp *, struct mount *);
#endif /* _KERNEL */
>Unformatted: