freebsd-dev/sys/i386
Dag-Erling Smørgrav 3da3249106 Dissociate ptrace from procfs.
Until now, the ptrace syscall was implemented as a wrapper that called
various functions in procfs depending on which ptrace operation was
requested.  Most of these functions were themselves wrappers around
procfs_{read,write}_{,db,fp}regs(), with only some extra error checks,
which weren't necessary in the ptrace case anyway.

This commit moves procfs_rwmem() from procfs_mem.c into sys_process.c
(renaming it to proc_rwmem() in the process), and implements ptrace()
directly in terms of procfs_{read,write}_{,db,fp}regs() instead of
having it fake up a struct uio and then call procfs_do{,db,fp}regs().

It also moves the prototypes for procfs_{read,write}_{,db,fp}regs()
and proc_rwmem() from proc.h to ptrace.h, and marks all procfs files
except procfs_machdep.c as "optional procfs" instead of "standard".
2001-10-07 20:08:42 +00:00
..
acpica Now that this code is MD, we don't need the i386 ifdefs. 2001-09-07 03:00:30 +00:00
apm KSE Milestone 2 2001-09-12 08:38:13 +00:00
bios KSE Milestone 2 2001-09-12 08:38:13 +00:00
compile Don't need the .keep_me files. Obrien and I committed past each other. 2001-07-01 23:35:44 +00:00
conf Mention that ed requires miibus. 2001-10-07 16:39:40 +00:00
i386 Dissociate ptrace from procfs. 2001-10-07 20:08:42 +00:00
ibcs2 KSE Milestone 2 2001-09-12 08:38:13 +00:00
include Rewrite the pc98 bus_space stuff. 2001-10-07 10:04:18 +00:00
isa Export interrupt statistics via sysctl. 2001-10-07 17:03:56 +00:00
linux Regen: Stop using linux_getpgid(). Use the native getpgid() 2001-09-28 01:32:27 +00:00
pci It turns out that while Toshiba laptops don't want to route interrupts 2001-08-28 16:35:01 +00:00
svr4 If we have a p variable pointing to td->td_proc already, use it instead of 2001-09-18 21:20:58 +00:00
Makefile Update tags directive to reflect the new location of soft updates 2000-07-04 00:18:43 +00:00