include <stdlib.h> and <unistd.h> for prototypes, remove old declarations
add prototypes for internal functions
make all implicit int return and argument types explicit, make some void
eliminate 'register'
cast lseek(2) offset arguments to off_t
use of mbuf external storage and increasing performance (by eliminating
an m_pullup() for clusters in the IP reassembly code).
Changes from Koji Imada <koji@math.human.nagoya-u.ac.jp>, in PR #3628
and #3480, with ever-so-slight integration changes by me.
- If the partition is already open, skip the open/close step. (Sync with
other disk drivers).
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
- If the partition is already open, skip the open/close step. (Sync
with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
- Pass correct arguments to ofdopen() and ofdclose().
- If the partition was previously open, don't do the open/close steps.
(Sync with other disk drivers.)
- foosize()'s return value is in DEV_BSIZE units; adjust the size obtained
from the disklabel accordingly.
newly-exec()ed user-land process for the new dl*-capable crt0:
a0 stack pointer (points to onstack argc)
a1 rtld cleanup (filled in by dynamic loader)
a2 rtld object (filled in by dynamic loader)
a3 ps_strings
From Jason Thorpe (thorpej@nas.nasa.gov).
Expects additional register-passed arguments from the kernel on
exec(). If no such args ($a0 is zero), fall back to the old hack of
adjusting the current $sp with a hard-coded frame offset for __start's
local frame(!).
Suggested by Jason Thorpe (thorpej@nas.nasa.gov), debugged and
stackframe offsets updated by Jonathan Stone.
ktlbmiss on the kernel stack. It was showing the temporary SP, not the
original SP.
Add a display of the first few wired entries of the TLB so when the ktblmiss
occurs, the TLB entries mapping the kernel stack can be verified.
- Add optional "geomspec" argument as third argument when configuring
a vnode disk. Format is: secsize/secpertrack/trackpercyl/ncylinders,
e.g. 512/18/2/80.
- Add optional "-t typename" argument, mutually exclusive with "geomspec",
that will look up "typename" in /etc/disktab and use the geometry
specified in the entry.
- Update verbose output accordingly.
greater flexibility in its use. Additionally, add support for "geometry
emulation". This allows the "geometry" of the "disk" to be specified
at config time, providing near-perfect emulation of disklabel-less floppies,
CD-ROMs, etc., including non-512-byte sectors. If a geometry is not
specified at config time, a default based on 1M cylinders will be used.