freebsd-skq/sys
Maxime Henrion 07159f9c56 Cleanup of the d_mmap_t interface.
- Get rid of the useless atop() / pmap_phys_address() detour.  The
  device mmap handlers must now give back the physical address
  without atop()'ing it.
- Don't borrow the physical address of the mapping in the returned
  int.  Now we properly pass a vm_offset_t * and expect it to be
  filled by the mmap handler when the mapping was successful.  The
  mmap handler must now return 0 when successful, any other value
  is considered as an error.  Previously, returning -1 was the only
  way to fail.  This change thus accidentally fixes some devices
  which were bogusly returning errno constants which would have been
  considered as addresses by the device pager.
- Garbage collect the poorly named pmap_phys_address() now that it's
  no longer used.
- Convert all the d_mmap_t consumers to the new API.

I'm still not sure wheter we need a __FreeBSD_version bump for this,
since and we didn't guarantee API/ABI stability until 5.1-RELEASE.

Discussed with:		alc, phk, jake
Reviewed by:		peter
Compile-tested on:	LINT (i386), GENERIC (alpha and sparc64)
Runtime-tested on:	i386
2003-02-25 03:21:22 +00:00
..
alpha Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
amd64 Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
arm MB_LEN_MAX is not MD, move it to the MI limits.h. 2002-12-22 06:38:45 +00:00
boot Only apply rev 1.10 (which hacks around the i386 boot2 being too big for 2003-02-25 00:10:20 +00:00
cam NO_GEOM cleanup: 2003-02-21 19:00:48 +00:00
coda Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
compat Add M_WAITOK 2003-02-20 11:24:55 +00:00
conf Remove support for running in SimOS. The support has rotted over 2003-02-25 00:42:40 +00:00
contrib NO_GEOM cleanup: 2003-02-22 09:32:57 +00:00
crypto Remove some unnecessary casts. 2003-01-25 22:41:22 +00:00
ddb - Split the struct kse into struct upcall and struct kse. struct kse will 2003-02-17 05:14:26 +00:00
dev Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
fs Do not call smbfs_attr_cacheremove() in the EXDEV case in smbfs_rename(). 2003-02-19 11:54:35 +00:00
geom Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
gnu This commit was generated by cvs2svn to compensate for changes in r111368, 2003-02-23 21:58:31 +00:00
i4b Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
i386 Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
ia64 Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
isa Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
isofs/cd9660 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
kern Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
libkern Add an implementation of strdup() to libkern. Allocated memory is of 2003-02-23 14:30:17 +00:00
modules Remove support for running in SimOS. The support has rotted over 2003-02-25 00:42:40 +00:00
net Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netatalk Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netatm There is no reason to be cute with ntohl(). Just call it directly rather 2003-02-23 22:26:39 +00:00
netgraph Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netinet Hold the TCP protocol lock while modifying the connection hash table. 2003-02-25 01:32:03 +00:00
netinet6 Fix another case for timewait. 2003-02-24 02:06:50 +00:00
netipsec Update to work with the new timewait state. 2003-02-24 02:06:02 +00:00
netipx Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netkey Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netnatm Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netncp Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netns Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
netsmb Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfs Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfsclient Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
nfsserver Don't use mbuf allocator flags for malloc(9). 2003-02-22 10:35:37 +00:00
opencrypto o add a CRYPTO_F_CBIMM flag to symmetric ops to indicate the callback 2003-02-23 07:25:48 +00:00
pc98 Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
pccard Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
pci Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
posix4 Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
powerpc Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
rpc
security Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
sparc64 Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
sys Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
tools Remove miidevs.h and generate it from miidevs at compile time. 2003-01-19 02:59:34 +00:00
ufs Expand the reference count on struct dquot to 32 bits. 2003-02-24 08:49:59 +00:00
vm Cleanup of the d_mmap_t interface. 2003-02-25 03:21:22 +00:00
Makefile