]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoMake this WARNS=5 clean by using %j and (uintmax_t).
johan [Wed, 23 Apr 2003 20:24:13 +0000 (20:24 +0000)]
Make this WARNS=5 clean by using %j and (uintmax_t).

Look at by: sebastian.ssmoller@web.de on audit@

21 years agoThese are WARNS=5 clean, mark them as such to keep them that way.
johan [Wed, 23 Apr 2003 20:22:33 +0000 (20:22 +0000)]
These are WARNS=5 clean, mark them as such to keep them that way.

Look at by: sebastian.ssmoller@web.de on audit@

21 years agoUse bus_space*() instead of in*() and out*().
jhay [Wed, 23 Apr 2003 20:22:32 +0000 (20:22 +0000)]
Use bus_space*() instead of in*() and out*().

21 years agoTurn EV_NEW_PROVIDER into a g_call_me() event.
phk [Wed, 23 Apr 2003 20:16:13 +0000 (20:16 +0000)]
Turn EV_NEW_PROVIDER into a g_call_me() event.

21 years agoConvert EV_SPOILED event to use g_call_me().
phk [Wed, 23 Apr 2003 20:06:38 +0000 (20:06 +0000)]
Convert EV_SPOILED event to use g_call_me().

21 years agoRemove Giant from osigblock(), osigsetmask(), and kern_sigaltstack().
jhb [Wed, 23 Apr 2003 19:49:18 +0000 (19:49 +0000)]
Remove Giant from osigblock(), osigsetmask(), and kern_sigaltstack().

21 years agoTurn the hardwired NEW_CLASS event into a g_call_me() event.
phk [Wed, 23 Apr 2003 19:34:38 +0000 (19:34 +0000)]
Turn the hardwired NEW_CLASS event into a g_call_me() event.

21 years agoMove the shutdown eventhandler stuff to a more logical place.
phk [Wed, 23 Apr 2003 19:15:27 +0000 (19:15 +0000)]
Move the shutdown eventhandler stuff to a more logical place.

21 years agoUpdate many of the locking notes and comments for struct
jhb [Wed, 23 Apr 2003 18:54:30 +0000 (18:54 +0000)]
Update many of the locking notes and comments for struct
thread/kse/ksegroup/proc.

21 years agoThe signotify() sanity check in userret() doesn't need Giant anymore.
jhb [Wed, 23 Apr 2003 18:51:55 +0000 (18:51 +0000)]
The signotify() sanity check in userret() doesn't need Giant anymore.

21 years agoAdd lock assertions for various proc/thread/kse/ksegroup fields to the
jhb [Wed, 23 Apr 2003 18:51:05 +0000 (18:51 +0000)]
Add lock assertions for various proc/thread/kse/ksegroup fields to the
scheduler functions.

21 years ago- Reorganize osigstack() to do the copyin first, grab the proc lock once,
jhb [Wed, 23 Apr 2003 18:50:25 +0000 (18:50 +0000)]
- Reorganize osigstack() to do the copyin first, grab the proc lock once,
  do all the various sigstack dances, unlock the proc lock, and finally do
  the copyout.  This more closely resembles the behavior of
  kern_sigaltstack() and closes a small race.
- Remove Giant from osigstack as it is no longer needed.

21 years agoRemove Giant from [gs]etpriority().
jhb [Wed, 23 Apr 2003 18:48:55 +0000 (18:48 +0000)]
Remove Giant from [gs]etpriority().

21 years ago- Protect p_numthreads with the sched_lock.
jhb [Wed, 23 Apr 2003 18:46:51 +0000 (18:46 +0000)]
- Protect p_numthreads with the sched_lock.
- Protect p_singlethread with both the sched_lock and the proc lock.
- Protect p_suspcount with the proc lock.

21 years agoFix a case where the return value from m_copy() was not being checked
archie [Wed, 23 Apr 2003 18:35:40 +0000 (18:35 +0000)]
Fix a case where the return value from m_copy() was not being checked
for NULL before proceeding, causing a crash if mbufs were exhausted.

MFC after: 3 days
Reported by: Mark Gooderum <mark@verniernetworks.com>

21 years agoFix compiling in the NO_SWAPPING case.
jhb [Wed, 23 Apr 2003 18:21:41 +0000 (18:21 +0000)]
Fix compiling in the NO_SWAPPING case.

Submitted by: bde (partially)

21 years agoFix a lock order reversal. Unlock the proc before calling fget().
jhb [Wed, 23 Apr 2003 18:13:26 +0000 (18:13 +0000)]
Fix a lock order reversal.  Unlock the proc before calling fget().

Reported by: kris

21 years agoRemove Kerberos IV shims.
des [Wed, 23 Apr 2003 17:26:01 +0000 (17:26 +0000)]
Remove Kerberos IV shims.

21 years agoUpdate for 3.6.1p1; also remove Kerberos IV shims.
des [Wed, 23 Apr 2003 17:25:47 +0000 (17:25 +0000)]
Update for 3.6.1p1; also remove Kerberos IV shims.

21 years agoNit.
des [Wed, 23 Apr 2003 17:23:06 +0000 (17:23 +0000)]
Nit.

21 years agoImprovements to the proposed shell code.
des [Wed, 23 Apr 2003 17:21:55 +0000 (17:21 +0000)]
Improvements to the proposed shell code.

21 years agoRegenerate.
des [Wed, 23 Apr 2003 17:21:27 +0000 (17:21 +0000)]
Regenerate.

21 years agoResolve conflicts.
des [Wed, 23 Apr 2003 17:13:13 +0000 (17:13 +0000)]
Resolve conflicts.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r113908,
des [Wed, 23 Apr 2003 16:53:02 +0000 (16:53 +0000)]
This commit was generated by cvs2svn to compensate for changes in r113908,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import of OpenSSH-portable 3.6.1p1.
des [Wed, 23 Apr 2003 16:53:02 +0000 (16:53 +0000)]
Vendor import of OpenSSH-portable 3.6.1p1.

21 years agoComment out the mixer entry for igain for the mic 20dB boost for now since
jhb [Wed, 23 Apr 2003 16:49:53 +0000 (16:49 +0000)]
Comment out the mixer entry for igain for the mic 20dB boost for now since
it can cause feedback problems on some laptops.

Reviewed by: orion

21 years agoAdd constants for USB programming interfaces. These are already defined
des [Wed, 23 Apr 2003 15:51:36 +0000 (15:51 +0000)]
Add constants for USB programming interfaces.  These are already defined
(with other names) in the USB driver sources, but I felt that pcireg.h
should have a complete list - at least of classes and interfaces that we
know about and use.

21 years agoGet rid of kvtop().
jhay [Wed, 23 Apr 2003 15:40:11 +0000 (15:40 +0000)]
Get rid of kvtop().
Change inb() and outb() to use bus_space*().

21 years agoSet appropriate tag "fsck" to logger(1) for background fsck messages.
matusita [Wed, 23 Apr 2003 15:38:02 +0000 (15:38 +0000)]
Set appropriate tag "fsck" to logger(1) for background fsck messages.

PR: 51174
Submitted by: Alex Popa <razor@ldc.ro>

21 years agoCorrect a doubled 'with'.
schweikh [Wed, 23 Apr 2003 14:28:13 +0000 (14:28 +0000)]
Correct a doubled 'with'.

21 years agoMake sure debug.log only gets debugging messages.
des [Wed, 23 Apr 2003 13:08:31 +0000 (13:08 +0000)]
Make sure debug.log only gets debugging messages.

21 years agoFix a compiler warning.
phk [Wed, 23 Apr 2003 12:15:31 +0000 (12:15 +0000)]
Fix a compiler warning.

Submitted by: David Leimbach <leimy2k@mac.com>

21 years agoaxe(4) works on pc98 maybe.
nyan [Wed, 23 Apr 2003 10:46:00 +0000 (10:46 +0000)]
axe(4) works on pc98 maybe.

21 years agoPresumably fix sparc64 "make release". (The breakage was due to
ru [Wed, 23 Apr 2003 09:01:35 +0000 (09:01 +0000)]
Presumably fix sparc64 "make release".  (The breakage was due to
sunlabel(8) no longer being linked to disklabel(8).)

Reviewed by: phk

21 years agoCorrect typo in COMPATIBILITY section: s/esycmd/esyscmd
schweikh [Wed, 23 Apr 2003 08:47:51 +0000 (08:47 +0000)]
Correct typo in COMPATIBILITY section: s/esycmd/esyscmd

21 years agoAdd testcases to ensure that overwriting bootcode does not trash label.
phk [Wed, 23 Apr 2003 08:25:44 +0000 (08:25 +0000)]
Add testcases to ensure that overwriting bootcode does not trash label.

21 years agoIf we cannot open the parent device for writing, use GEOM::CONFIG_GEOM
phk [Wed, 23 Apr 2003 08:25:20 +0000 (08:25 +0000)]
If we cannot open the parent device for writing, use GEOM::CONFIG_GEOM
requests to write label and bootcode.

The -r argument is ignored (with a warning).

With a lot of help from: jake

21 years agoImplement CONFIG_GEOM verbs "write label" and "write bootcode".
phk [Wed, 23 Apr 2003 08:23:01 +0000 (08:23 +0000)]
Implement CONFIG_GEOM verbs "write label" and "write bootcode".

21 years agoIntroduce a #define for the length of the bootloader code.
phk [Wed, 23 Apr 2003 08:04:30 +0000 (08:04 +0000)]
Introduce a #define for the length of the bootloader code.

21 years agoIntroduce gctl_get_paraml() which gets a parameter only if it has the
phk [Wed, 23 Apr 2003 08:03:47 +0000 (08:03 +0000)]
Introduce gctl_get_paraml() which gets a parameter only if it has the
right length.

21 years agoMake gctl_error() take printfline varargs.
phk [Wed, 23 Apr 2003 07:50:01 +0000 (07:50 +0000)]
Make gctl_error() take printfline varargs.

21 years agoRemove unused event pointers in object structures.
phk [Wed, 23 Apr 2003 06:54:44 +0000 (06:54 +0000)]
Remove unused event pointers in object structures.
Remove KASSERTS which checked that they were unused.

21 years agoDo not link sunlabel to disklabel.
phk [Wed, 23 Apr 2003 06:37:57 +0000 (06:37 +0000)]
Do not link sunlabel to disklabel.

21 years agoAdd /dev to the Alpha manual mount root example.
obrien [Wed, 23 Apr 2003 05:02:40 +0000 (05:02 +0000)]
Add /dev to the Alpha manual mount root example.

21 years agoThe second chdir(1) that I trimmed is needed too
ru [Wed, 23 Apr 2003 04:28:35 +0000 (04:28 +0000)]
The second chdir(1) that I trimmed is needed too
if the program has an object directory.

Explained by: Tim Kientzle <kientzle@acm.org>

21 years agoRelease the vnode interlock in nfs_flush() before calling nfs_sigintr(),
truckman [Wed, 23 Apr 2003 02:58:26 +0000 (02:58 +0000)]
Release the vnode interlock in nfs_flush() before calling nfs_sigintr(),
and grab it again later if necessary.  This prevents a lock order reversal
because nfs_sigintr() calls PROC_LOCK().

21 years agoAdd first axe(4) devices.
bmah [Tue, 22 Apr 2003 22:41:53 +0000 (22:41 +0000)]
Add first axe(4) devices.

21 years agoNew release notes: axe(4), newfs(8) -O2 default, sysinstall UFS2
bmah [Tue, 22 Apr 2003 22:40:57 +0000 (22:40 +0000)]
New release notes:  axe(4), newfs(8) -O2 default, sysinstall UFS2
default (i386,alpha,sparc64,ia64).

21 years ago``Strong typing is a crutch for people with weak memories.''
nectar [Tue, 22 Apr 2003 22:19:05 +0000 (22:19 +0000)]
``Strong typing is a crutch for people with weak memories.''

Correct a bug that should have wreaked havoc everywhere, but for
some reason only bit unlucky people who use `-march' optimizations.
The compiler cannot assist one in distinguishing between the two
function calls below.

   int nsdispatch(void *, ...);
   void *discard;

   nsdispatch(&discard, ...);  /* correct .. no, really! */
   nsdispatch(discard, ...);   /* Boom                   */

Robin provided me with a debugging environment in which I could see
what was going on.

Badness when using CPUTYPE was
Reported by: "Robin P. Blanchard" <Robin.Blanchard@gactr.uga.edu>
Reported by: nork

Sponsored by: DARPA, Network Associates Laboratories

21 years agoSet the quantum for scope system threads to 0 (no quantum).
deischen [Tue, 22 Apr 2003 21:32:32 +0000 (21:32 +0000)]
Set the quantum for scope system threads to 0 (no quantum).

21 years agoChange the locking so that the _modify function is called with topology
phk [Tue, 22 Apr 2003 21:29:58 +0000 (21:29 +0000)]
Change the locking so that the _modify function is called with topology
held.

The only place where we want to not hold topology is when we read
(or write) the label to disk: in the case of a disk error with a
long recovery time, holding topology would prevent open/close of
any disk device.

21 years agoWe don't need to have a slice->start() function.
phk [Tue, 22 Apr 2003 21:24:37 +0000 (21:24 +0000)]
We don't need to have a slice->start() function.

21 years agoDo not mandate that slicers have a private ->start(), they may not need
phk [Tue, 22 Apr 2003 21:19:17 +0000 (21:19 +0000)]
Do not mandate that slicers have a private ->start(), they may not need
one.  KASSERT() that they have one if G_SLICE_HOT_START is used.

21 years agoAdd "-r" when we initialize the label first time.
phk [Tue, 22 Apr 2003 21:04:48 +0000 (21:04 +0000)]
Add "-r" when we initialize the label first time.

Add two more tests.

21 years agoImplement handling of CONFIG_GEOM OAM request.
phk [Tue, 22 Apr 2003 21:01:46 +0000 (21:01 +0000)]
Implement handling of CONFIG_GEOM OAM request.

21 years agoAdd "CONFIG_GEOM" operation to the OAM API.
phk [Tue, 22 Apr 2003 21:00:49 +0000 (21:00 +0000)]
Add "CONFIG_GEOM" operation to the OAM API.

21 years ago- Move PS_PROFIL and its new cousin PS_STOPPROF back over to p_flag and
jhb [Tue, 22 Apr 2003 20:54:04 +0000 (20:54 +0000)]
- Move PS_PROFIL and its new cousin PS_STOPPROF back over to p_flag and
  rename them appropriately.  Protect both flags with both the proc lock
  and the sched_lock.
- Protect p_profthreads with the proc lock.
- Remove Giant from profil(2).

21 years ago- Assert that the proc lock and sched_lock are held in sched_nice().
jhb [Tue, 22 Apr 2003 20:50:38 +0000 (20:50 +0000)]
- Assert that the proc lock and sched_lock are held in sched_nice().
- For the 4BSD scheduler, this means that all callers of the static
  function resetpriority() now always hold sched_lock, so don't lock
  sched_lock explicitly in that function.

21 years agoLock both the proc lock and sched_lock when calling sched_nice since
jhb [Tue, 22 Apr 2003 20:45:38 +0000 (20:45 +0000)]
Lock both the proc lock and sched_lock when calling sched_nice since
kg_nice is now protected by both.  Being protected by both means that
other places in the kernel that want to read kg_nice only need one of the
two locks.

21 years agoAdd a working pthread_[gs]etconcurrency. Initial null implementation
deischen [Tue, 22 Apr 2003 20:29:16 +0000 (20:29 +0000)]
Add a working pthread_[gs]etconcurrency.  Initial null implementation
provided by Sergey A. Osokin <osa@freebsd.org.ru>.

In order to test this on a single CPU machine, you need to:

    sysctl kern.threads.debug=1
    sysctl kern.threads.virtual_cpu=2

21 years agoAdd a couple asserts to pthread_cond_foo to ensure the (low-level)
deischen [Tue, 22 Apr 2003 20:28:33 +0000 (20:28 +0000)]
Add a couple asserts to pthread_cond_foo to ensure the (low-level)
lock level is 0.  Thus far, the threads implementation doesn't use
mutexes or condition variables so the lock level should be 0.

Save the return value when trying to schedule a new thread and
use this to return an error from pthread_create().

Change the max sleep time for an idle KSE to 1 minute from 2 minutes.

Maintain a count of the number of KSEs within a KSEG.

With these changes scope system threads seem to work, but heavy
use of them crash the kernel (supposedly VM bugs).

21 years agoLock the proc to check p_flag and several other related tests in
jhb [Tue, 22 Apr 2003 20:03:08 +0000 (20:03 +0000)]
Lock the proc to check p_flag and several other related tests in
vm_daemon().  We don't need to hold sched_lock as long now as a result.

21 years agoPrefer the proc lock to sched_lock when testing PS_INMEM now that it is
jhb [Tue, 22 Apr 2003 20:01:56 +0000 (20:01 +0000)]
Prefer the proc lock to sched_lock when testing PS_INMEM now that it is
safe to do so.

21 years ago- Always call faultin() in _PHOLD() if PS_INMEM is clear. This closes a
jhb [Tue, 22 Apr 2003 20:00:26 +0000 (20:00 +0000)]
- Always call faultin() in _PHOLD() if PS_INMEM is clear.  This closes a
  race where a thread could assume that a process was swapped in by
  PHOLD() when it actually wasn't fully swapped in yet.
- In faultin(), always msleep() if PS_SWAPPINGIN is set instead of doing
  this check after bumping p_lock in the PS_INMEM == 0 case.  Also,
  sched_lock is only needed for setting and clearning swapping PS_*
  flags and the swap thread inhibitor.
- Don't set and clear the thread swap inhibitor in the same loops as the
  pmap_swapin/out_thread() since we have to do it under sched_lock.
  Instead, mimic the treatment of the PS_INMEM flag and use separate loops
  to set the inhibitors when clearing PS_INMEM and clear the inhibitors
  when setting PS_INMEM.
- swapout() now returns with the proc lock held as it holds the lock
  while adjusting the swapping-related PS_* flags so that the proc lock
  can be used to test those flags.
- Only use the proc lock to check the swapping-related PS_* flags in
  several places.
- faultin() no longer requires sched_lock to be held by callers.
- Rename PS_SWAPPING to PS_SWAPPINGOUT to be less ambiguous now that we
  have PS_SWAPPINGIN.

21 years agoMake this WARNS=2 clean by using %j and (uintmax_t).
johan [Tue, 22 Apr 2003 19:57:46 +0000 (19:57 +0000)]
Make this WARNS=2 clean by using %j and (uintmax_t).

Reviewed by: tjr@ on audit@
Approved by: silence from sos@

21 years agoProtect p_swtime with the sched_lock.
jhb [Tue, 22 Apr 2003 19:48:25 +0000 (19:48 +0000)]
Protect p_swtime with the sched_lock.

21 years ago- Mark the kse_purge_group() and kse_purge() definitions static to match
jhb [Tue, 22 Apr 2003 19:47:55 +0000 (19:47 +0000)]
- Mark the kse_purge_group() and kse_purge() definitions static to match
  their prototypes.
- Remove sched_lock locking from kse_purge() as all callers already lock
  the sched_lock before calling it.
- Hold the proc lock slightly longer to protect P_SHOULDSTOP().

21 years agoKeep the proc locked while we set PS_INMEM so that either of the proc lock
jhb [Tue, 22 Apr 2003 19:45:26 +0000 (19:45 +0000)]
Keep the proc locked while we set PS_INMEM so that either of the proc lock
or sched_lock are sufficient to test this flag.

XXX: vinum should really be using a kernel process via kthread_create()
instead of this hack.  I'm not even sure PS_INMEM can be clear at this
point anyways.

21 years agoCollapse meta arguments into regular arguments, the distinction is
phk [Tue, 22 Apr 2003 19:42:05 +0000 (19:42 +0000)]
Collapse meta arguments into regular arguments, the distinction is
more trouble than it is worth.

21 years agoCollapse the meta arguments into normal arguments, trying to distinguish
phk [Tue, 22 Apr 2003 19:31:00 +0000 (19:31 +0000)]
Collapse the meta arguments into normal arguments, trying to distinguish
just makes our own life harder.

21 years agoUse .Pa for the pccard_ether file.
trhodes [Tue, 22 Apr 2003 18:53:14 +0000 (18:53 +0000)]
Use .Pa for the pccard_ether file.
s/spppconfig/spppcontrol/

Submitted by: "Simon L. Nielsen" <simon@nitro.dk>

21 years ago- Replace inline implementations of sigprocmask() with calls to
jhb [Tue, 22 Apr 2003 18:23:49 +0000 (18:23 +0000)]
- Replace inline implementations of sigprocmask() with calls to
  kern_sigprocmask() in the various binary compatibility emulators.
- Replace calls to sigsuspend(), sigaltstack(), sigaction(), and
  sigprocmask() that used the stackgap with calls to the corresponding
  kern_sig*() functions instead without using the stackgap.

21 years agoCatch this file up with ufs/ffs/fs.h.
trhodes [Tue, 22 Apr 2003 18:20:44 +0000 (18:20 +0000)]
Catch this file up with ufs/ffs/fs.h.

PR: 51189
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>

21 years agoRevision 1.246 should have also included
alc [Tue, 22 Apr 2003 14:26:02 +0000 (14:26 +0000)]
Revision 1.246 should have also included

 - Weaken the assertion in vm_page_insert() to require Giant only if the
   vm_object isn't locked.

Reported by:  "Ilmar S. Habibulin" <ilmar@watson.org>

21 years agochdir(1) into a source directory before attempting to determine the
ru [Tue, 22 Apr 2003 14:01:33 +0000 (14:01 +0000)]
chdir(1) into a source directory before attempting to determine the
OBJS list.  This is needed to crunch any program that relies on the
correct .CURDIR setting, e.g. src/bin/csh.

Submitted by: Tim Kientzle <kientzle@acm.org>

21 years agoIP addresses can be up to 15 characters long, not 12.
mike [Tue, 22 Apr 2003 13:24:56 +0000 (13:24 +0000)]
IP addresses can be up to 15 characters long, not 12.

PR:     50904

21 years agoComment out firewire devices.
nyan [Tue, 22 Apr 2003 12:14:19 +0000 (12:14 +0000)]
Comment out firewire devices.

21 years agoAxe CXXINCLUDES from CXXFLAGS, it serves no useful purpose anymore.
ru [Tue, 22 Apr 2003 11:04:25 +0000 (11:04 +0000)]
Axe CXXINCLUDES from CXXFLAGS, it serves no useful purpose anymore.

Reviewed by: bde

21 years agoAdd Vladimir Ulyanov's birthday.
grog [Tue, 22 Apr 2003 10:33:43 +0000 (10:33 +0000)]
Add Vladimir Ulyanov's birthday.

Reminded by: joerg (born 92 years later, to the day).

21 years agoBump document date for previous revision.
ru [Tue, 22 Apr 2003 09:39:10 +0000 (09:39 +0000)]
Bump document date for previous revision.
Fix list type.

21 years agoMove down intr level testing code a bit, cpu_switch_load_gs fault can be at
davidxu [Tue, 22 Apr 2003 08:12:03 +0000 (08:12 +0000)]
Move down intr level testing code a bit, cpu_switch_load_gs fault can be at
interrupt nested time.

21 years agoadd FireWire drivers.
simokawa [Tue, 22 Apr 2003 07:57:20 +0000 (07:57 +0000)]
add FireWire drivers.

21 years agoFix some problems for cpu_switch_load_gs. when fault address is at
davidxu [Tue, 22 Apr 2003 07:45:47 +0000 (07:45 +0000)]
Fix some problems for cpu_switch_load_gs. when fault address is at
cpu_switch_load_gs, cpu is in context switch, so don't enable interrupt.
because it is in context switch, it is expected sched_lock was held,
so don't PROC_LOCK(p) and psignal, it is LOR, probably we can
set a P_XSIGBUS like flag in p_sflags, and set TDF_ASTPENDING in
td_flags, in ast(), post a SIGBUS to process if P_XSIGBUS was set.

21 years agoRemove unused declarations.
alc [Tue, 22 Apr 2003 06:26:42 +0000 (06:26 +0000)]
Remove unused declarations.

21 years agoRevision 1.52 of vm/uma_core.c has led to UMA's obj_alloc() being
alc [Tue, 22 Apr 2003 05:36:14 +0000 (05:36 +0000)]
Revision 1.52 of vm/uma_core.c has led to UMA's obj_alloc() being
called without Giant; and obj_alloc() in turn calls vm_page_alloc()
without Giant.  This causes an assertion failure in vm_page_alloc().
Fortunately, obj_alloc() is now MPSAFE.  So, we need only clean up
some assertions.

 - Weaken the assertion in vm_page_lookup() to require Giant only
   if the vm_object isn't locked.
 - Remove an assertion from vm_page_alloc() that duplicates a check
   performed in vm_page_lookup().

In collaboration with: gallatin, jake, jeff

21 years agoFix compilation errors.
phk [Tue, 22 Apr 2003 05:34:35 +0000 (05:34 +0000)]
Fix compilation errors.

I wonder how I managed to cross-compile this yesterday.

21 years agoFreeBSD has no systrace(1), and our rc.subr does not support it.
dougb [Tue, 22 Apr 2003 05:13:55 +0000 (05:13 +0000)]
FreeBSD has no systrace(1), and our rc.subr does not support it.

Submitted by: Simon L. Nielsen <simon@nitro.dk>

21 years agoAdd VM_OBJECT_LOCKED().
alc [Tue, 22 Apr 2003 04:47:29 +0000 (04:47 +0000)]
Add VM_OBJECT_LOCKED().

21 years agoadd scbus for FireWire.
simokawa [Tue, 22 Apr 2003 04:39:20 +0000 (04:39 +0000)]
add scbus for FireWire.

21 years agoDocument device_set_driver(9)
imp [Tue, 22 Apr 2003 03:43:44 +0000 (03:43 +0000)]
Document device_set_driver(9)

# now all driver_* functions used outside of subr_bus.o in my kernel
# are documented.

21 years agoDocument device_printf(9).
imp [Tue, 22 Apr 2003 03:32:31 +0000 (03:32 +0000)]
Document device_printf(9).

21 years agoDocument device_set_ivars(9) as well.
imp [Tue, 22 Apr 2003 03:25:14 +0000 (03:25 +0000)]
Document device_set_ivars(9) as well.

21 years agoRemove single threading detecting code, these code really should be
davidxu [Tue, 22 Apr 2003 03:17:41 +0000 (03:17 +0000)]
Remove single threading detecting code, these code really should be
replaced by thread_user_enter(), but current we don't want to enable
this in trap.

21 years agoSet the local bus address in xfer->dst.
simokawa [Tue, 22 Apr 2003 02:31:31 +0000 (02:31 +0000)]
Set the local bus address in xfer->dst.

Submitted by: Buzz Slye <buzz@gaia.arc.nasa.gov>

21 years agoDon't use the tpa instruction to implement pmap_kextract. The tpa
marcel [Tue, 22 Apr 2003 01:48:43 +0000 (01:48 +0000)]
Don't use the tpa instruction to implement pmap_kextract. The tpa
instruction requires that a translation is present in the TC. This
may trigger a TLB miss and a subsequent call to vm_fault().
This implementation is deliberately non-inline for debugging and
profiling purposes. Partial or full inlining should eventually be
done.

Valuable insights by: jake

21 years agoman page for device_get_parent.
imp [Tue, 22 Apr 2003 00:26:02 +0000 (00:26 +0000)]
man page for device_get_parent.

21 years agodevice_is_alive already was documented in device_get_state, so remove the
imp [Tue, 22 Apr 2003 00:21:28 +0000 (00:21 +0000)]
device_is_alive already was documented in device_get_state, so remove the
separate man page.  Document new device_is_attached there and remove that
new man page too.

Connect device_get_name to build, and install a link for
device_get_nameunit.

strangely nobody noticed this yet...

21 years agoAdd man page for device_get_name and device_get_nameunit.
imp [Tue, 22 Apr 2003 00:18:55 +0000 (00:18 +0000)]
Add man page for device_get_name and device_get_nameunit.

21 years agoDon't use UFS2 by default during the install process on PC98, as the
rwatson [Mon, 21 Apr 2003 20:57:20 +0000 (20:57 +0000)]
Don't use UFS2 by default during the install process on PC98, as the
PC98 boot blocks don't support UFS2.  We keep newfs(8) defaulting to
UFS2.

Warn users that FreeBSD can only boot from a root file system smaller
than 1.5TB; hopefully this will get fixed by the patches currently
floating around on -CURRENT.

Reviewed by: nyan

21 years agoNow that all uses of this file use explicit encoding/decoding, remove
phk [Mon, 21 Apr 2003 20:40:41 +0000 (20:40 +0000)]
Now that all uses of this file use explicit encoding/decoding, remove
all the bits we do not need, and drop the attempt at "disk-image"
structure definition.

Add idempotency (sp?) #ifdef