]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
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

21 years agoUse explicit encoding/decoding funtions for sunlabel data structures.
phk [Mon, 21 Apr 2003 20:38:15 +0000 (20:38 +0000)]
Use explicit encoding/decoding funtions for sunlabel data structures.
Use #defines for various magic numbers.

Attach test-case to makefile.

Reviewed by:    jake

21 years agoUpdate libdisk to use the explicing encoding function for sunlabel data
phk [Mon, 21 Apr 2003 20:36:44 +0000 (20:36 +0000)]
Update libdisk to use the explicing encoding function for sunlabel data
structures.

21 years agoAdd minimal regression test for hotspot handling of the sunlabel.
phk [Mon, 21 Apr 2003 20:16:07 +0000 (20:16 +0000)]
Add minimal regression test for hotspot handling of the sunlabel.

21 years agoImplement a hotspot for the sunlabel.
phk [Mon, 21 Apr 2003 20:14:36 +0000 (20:14 +0000)]
Implement a hotspot for the sunlabel.

This means that you can no longer trash your opened partitions by writing to
the sunlabel through another partition.  This is similar to the semantics
implemented for BSD labels.

21 years ago- Don't highlight options APIC_IO at the top since it only applies to i386
jhb [Mon, 21 Apr 2003 20:05:33 +0000 (20:05 +0000)]
- Don't highlight options APIC_IO at the top since it only applies to i386
  and this manpage is somewhat machine independent.
- Don't redundantly say that SMP support is present for all supported
  architectures.  Instead, say that it is present for all Tier-1
  architectures.
- Note that an SMP kernel not booting on a UP machine is an i386-only
  exception.
- Add a paragraph about hyperthreading support including some docco on the
  machdep.hlt_logical_cpus sysctl ps@ recently added.
- Note that SMP support for alpha, ia64, and sparc64 debuted in 5.0.

21 years agoUpdate GEOM::SUN to use the decoding functions in geom_sunlabel_enc.c
phk [Mon, 21 Apr 2003 19:54:11 +0000 (19:54 +0000)]
Update GEOM::SUN to use the decoding functions in geom_sunlabel_enc.c
and #defines from sys/sun_disklabel.h.

21 years agoUse #defines from <sys/sun_disklabel.h> instead of private ones.
phk [Mon, 21 Apr 2003 19:42:36 +0000 (19:42 +0000)]
Use #defines from <sys/sun_disklabel.h> instead of private ones.

21 years agoAdd defines for number of partitions, raw partition index and size of
phk [Mon, 21 Apr 2003 19:38:33 +0000 (19:38 +0000)]
Add defines for number of partitions, raw partition index and size of
encoded data structure.

21 years agoAdd prototypes for sunlabel_dec() and sunlabel_enc().
phk [Mon, 21 Apr 2003 19:31:42 +0000 (19:31 +0000)]
Add prototypes for sunlabel_dec() and sunlabel_enc().
Assume (for now) that all sun labels are big endian.

21 years agoRemoved mount_devfs from progs since there is no "mount_devfs"
ru [Mon, 21 Apr 2003 19:14:32 +0000 (19:14 +0000)]
Removed mount_devfs from progs since there is no "mount_devfs"
source directory (it's spelled mount_std nowadays), so it was
a no-op anyway, and DEVFS is now the default.

21 years agoGrammar and spelling fixes, improved the wording a bit
brueffer [Mon, 21 Apr 2003 19:08:35 +0000 (19:08 +0000)]
Grammar and spelling fixes, improved the wording a bit

A slightly different patch than the one from the PR was applied

PR: 38815
Submitted by: Chris Pepper <pepper@guest.reppep.com>
MFC after: 3 days

21 years agoFunctions to encode and decode Sun Microsystems disk partitioning data
phk [Mon, 21 Apr 2003 18:41:12 +0000 (18:41 +0000)]
Functions to encode and decode Sun Microsystems disk partitioning data
structures.

Mostly by: jake

21 years agoUse newly minted device_is_attached rather than device_is_alive to see
imp [Mon, 21 Apr 2003 18:34:04 +0000 (18:34 +0000)]
Use newly minted device_is_attached rather than device_is_alive to see
if attach succeeded.  device_is_alive just tells us that probe
succeeded.  Since we were using it to do things like detach net
interfaces, this caused problems when there were errors in the attach
routine.

Symptoms of problem reported by: martin blapp

21 years agoXref these two functions, since they are similar enough to cause confusion.
imp [Mon, 21 Apr 2003 18:27:44 +0000 (18:27 +0000)]
Xref these two functions, since they are similar enough to cause confusion.

21 years agoSimple man page for new device_is_attached.
imp [Mon, 21 Apr 2003 18:25:04 +0000 (18:25 +0000)]
Simple man page for new device_is_attached.

21 years agoAdd a man page for device_is_alive.
imp [Mon, 21 Apr 2003 18:24:05 +0000 (18:24 +0000)]
Add a man page for device_is_alive.

21 years agoCreate a new function, device_is_attached(), that is like
imp [Mon, 21 Apr 2003 18:19:08 +0000 (18:19 +0000)]
Create a new function, device_is_attached(), that is like
device_is_alive() that tells us if the device has successfully
attached.  device_is_alive just tells us that the device has
successfully probed.

21 years agoRegen.
takawata [Mon, 21 Apr 2003 17:36:03 +0000 (17:36 +0000)]
Regen.

21 years agoAdd another product ID for if_axe and correct vendor ID description
takawata [Mon, 21 Apr 2003 17:34:13 +0000 (17:34 +0000)]
Add another product ID for if_axe and correct vendor ID description
for Linksys USB200M.The USB vendor ID list is available from
http://www.usb.org/app/pub/dump/comp_dump/

Reviewed by: wpaul

21 years agoKill debug printf that crept in my last commit
imp [Mon, 21 Apr 2003 17:25:39 +0000 (17:25 +0000)]
Kill debug printf that crept in my last commit

21 years agoForce output of jail ID (if necessary) before excuting the command,
mike [Mon, 21 Apr 2003 17:20:48 +0000 (17:20 +0000)]
Force output of jail ID (if necessary) before excuting the command,
otherwise redirection of stdout to a file using block buffering will
not complete in time.

21 years agoAdd FireWire drivers to GENERIC.
simokawa [Mon, 21 Apr 2003 16:44:05 +0000 (16:44 +0000)]
Add FireWire drivers to GENERIC.

21 years agoRemove unused code.
simokawa [Mon, 21 Apr 2003 16:41:20 +0000 (16:41 +0000)]
Remove unused code.

21 years agoExplicitly declare 'int' parameters.
obrien [Mon, 21 Apr 2003 16:34:18 +0000 (16:34 +0000)]
Explicitly declare 'int' parameters.

21 years agoAssembly files put thru the C preprocessor need to have C style comments.
obrien [Mon, 21 Apr 2003 16:30:12 +0000 (16:30 +0000)]
Assembly files put thru the C preprocessor need to have C style comments.

21 years agoExplicitly declare 'int' parameters.
obrien [Mon, 21 Apr 2003 16:27:46 +0000 (16:27 +0000)]
Explicitly declare 'int' parameters.

21 years agoCorrect a bug that was somehow both obvious and hard-to-see. :-)
nectar [Mon, 21 Apr 2003 15:44:25 +0000 (15:44 +0000)]
Correct a bug that was somehow both obvious and hard-to-see. :-)
An incorrectly-sized allocation was being made due to an incorrect
argument to the `sizeof' operator.  Obvious, because it violated the
`foo = malloc(sizeof(*foo))' idiom.  Hard-to-see, because it was a
missing `*' (`*p' versus `**p').

Resulting failure was
Reported by: ache

Sponsored by: DARPA, Network Associates Laboratories

21 years agoReset pcb_gs and %gs before possibly invalidating it.
davidxu [Mon, 21 Apr 2003 15:05:05 +0000 (15:05 +0000)]
Reset pcb_gs and %gs before possibly invalidating it.

21 years agoFix lock order reversal problem.
davidxu [Mon, 21 Apr 2003 14:42:04 +0000 (14:42 +0000)]
Fix lock order reversal problem.

21 years agoDon't try to access the NIS `master' maps unless we have superuser
nectar [Mon, 21 Apr 2003 13:57:58 +0000 (13:57 +0000)]
Don't try to access the NIS `master' maps unless we have superuser
privileges.  To do so may cause the NIS server to log spurious and
annoying `access denied' messages.

Reported by: Philip Paeps <philip@paeps.cx>
Sponsored by: DARPA, Network Associates Laboratories

21 years agoIntroduce two flags to control upcall behaviour:
davidxu [Mon, 21 Apr 2003 07:27:59 +0000 (07:27 +0000)]
Introduce two flags to control upcall behaviour:

o KMF_NOUPCALL
Ask kse_release to not return to userland upcall entry, but instead
direct returns to userland by using current thread's stack and return
address on stack. This flags is intended to be used by UTS in critical
region to wait another UTS thread to leave critical region, by using
kse_release with this flag to avoid spinnng and burning CPU. Also this
flags can be used by UTS to poll completed context when there is nothing
to do in userland and needn't restart from its entry like normal upcall.

o KMF_NOCOMPLETED
Ask kernel to not bring completed thread contexts back to userland when
doing upcall, this flags is intend to be used with above flag when an
upcall thread is in critical region and can not process completed contexts
at that time.

Tested by: deischen

21 years agoAdd a member field for kse_upcall to cache kse mailbox flags.
davidxu [Mon, 21 Apr 2003 07:02:37 +0000 (07:02 +0000)]
Add a member field for kse_upcall to cache kse mailbox flags.
Code for this will be committed soon.

21 years ago - Assert that the vm_object is locked in vm_object_clear_flag(),
alc [Mon, 21 Apr 2003 06:33:52 +0000 (06:33 +0000)]
 - Assert that the vm_object is locked in vm_object_clear_flag(),
   vm_object_pip_add() and vm_object_pip_wakeup().
 - Remove GIANT_REQUIRED from vm_object_pip_subtract() and
   vm_object_pip_subtract().
 - Lock the vm_object when performing vm_object_page_remove().

21 years agoImplement a two new flags, and change the meaning of another one.
imp [Mon, 21 Apr 2003 06:26:08 +0000 (06:26 +0000)]
Implement a two new flags, and change the meaning of another one.
'd': now means don't do daemon().
'D': Debug
'n': Don't wait to process all pending events before calling daemon.

In the past, devd would call daemon immediately.  However, this causes
a race.  If anything in the boot process depends on configuring the
devices configured by devd, maybe they would be configured in time,
maybe not.  Now we don't call daemon until all pending events are
processed, unless -n is specified.

# -n is actually the default for a while due to the select(2) bug in devctl
# that I just fixed to give people a chance to upgrade.

21 years agoFix /dev/devctl's implementation of poll. We should only be setting
imp [Mon, 21 Apr 2003 05:58:51 +0000 (05:58 +0000)]
Fix /dev/devctl's implementation of poll.  We should only be setting
the poll bits when there's actually something in the queue.
Otherwise, select always returned '2' when there were no items to be
read, and '3' when there were.  This would preclude being able to read
in a threaded (libc_r) program, as well as checking to see if there
were pending events or not.

21 years agoAdd eMicro codec ids.
orion [Mon, 21 Apr 2003 04:48:40 +0000 (04:48 +0000)]
Add eMicro codec ids.

21 years agoPut an anti-foot-shooting measure in place. Set hw.bus.devctl_disable
imp [Mon, 21 Apr 2003 04:30:12 +0000 (04:30 +0000)]
Put an anti-foot-shooting measure in place.  Set hw.bus.devctl_disable
to 0 when we startup.  Print a warning in this case.  This allows
people that are playing with devd by hand to have something happen.
Otherwise, it appears that devd isn't working because /dev/devctl is
disabled and producing no events.

Suggested by: peter on irc a long time ago.

21 years agoAdd an i386-specifc hack to always set %gs. There still seems
deischen [Mon, 21 Apr 2003 04:02:56 +0000 (04:02 +0000)]
Add an i386-specifc hack to always set %gs.  There still seems
to be instances where the kernel doesn't  properly save and/or
restore it.

Use noupcall and nocompleted flags in the KSE mailbox.  These
require kernel changes to work which will be committed sometime
later.  Things still work without the changes.

Remove the general kse entry function and use two different
functions -- one for scope system threads and one for scope
process threads.  The scope system function is not yet enabled
and we use the same function for all threads at the moment.

Keep a copy of the KSE stack for the case that a KSE runs
a scope system thread and uses the same stack as the thread
(no upcalls are generated, so a separate stack isn't needed).
This isn't enabled yet.

Use a separate field for the KSE waiting flag.  It isn't
correct to use the mailbox flags field.

The following fixes were provided by David Xu:

  o Initialize condition variable locks with thread versions
    of the low-level locking functions instead of the kse versions.

  o Enable threading before creating the first thread instead
    of after.

  o Don't enter critical regions when trying to malloc/free
    or call functions that malloc/free.

  o Take the scheduling lock when inheriting thread attributes.

  o Check the attribute's stack pointer instead of the
    attributes stack size for null when allocating a
    thread's stack.

  o Add a kseg reinit function so we don't have to destroy and
    then recreate the same lock.

  o Check the return value of kse_create() and return an
    appropriate error if it fails.

  o Don't forget to destroy a thread's locks when freeing it.

  o Examine the correct flags word for checking to see if
    a thread is in a synchronization queue.

Things should now work on an SMP kernel.

21 years agoo Skip white space between variables better. This makes
imp [Mon, 21 Apr 2003 04:00:01 +0000 (04:00 +0000)]
o Skip white space between variables better.  This makes
  'a="b" c="d" at loc=1 on busN' properly set 'c' and process the rest of
  the stirng.  Before it would ignore everything after variable 'a'.
o Parse nomatch and other events differently.  They are more different
  than the code allowed for, so we weren't properly parsing nomatch
  events.  It appears this fixes some of the demand loading issues that
  I was having with devd.

Noticed by: Gary Palmer

21 years agoUse popfl to get the flags off the stack instead of popf.
deischen [Mon, 21 Apr 2003 03:59:07 +0000 (03:59 +0000)]
Use popfl to get the flags off the stack instead of popf.

Submitted by: davidxu

21 years agoUse SOUND_MIXER_IGAIN to toggle 20dB mic boost for want of a better
orion [Mon, 21 Apr 2003 03:47:28 +0000 (03:47 +0000)]
Use SOUND_MIXER_IGAIN to toggle 20dB mic boost for want of a better
place for it.

Assorted comments.

Submitted by: luigi

21 years agodevd.conf already has the examples in the todo list
imp [Mon, 21 Apr 2003 03:29:53 +0000 (03:29 +0000)]
devd.conf already has the examples in the todo list

21 years agoRemove extraneous reference to intrq.h, which broke the kernel build.
rwatson [Mon, 21 Apr 2003 03:17:27 +0000 (03:17 +0000)]
Remove extraneous reference to intrq.h, which broke the kernel build.

21 years agoThis commit was generated by cvs2svn to compensate for changes in r113778,
obrien [Mon, 21 Apr 2003 02:27:52 +0000 (02:27 +0000)]
This commit was generated by cvs2svn to compensate for changes in r113778,
which included commits to RCS files with non-trunk default branches.

21 years agoVendor import revision 1.8 of ac97_codec.h (we renamed the file) from
obrien [Mon, 21 Apr 2003 02:27:52 +0000 (02:27 +0000)]
Vendor import revision 1.8 of ac97_codec.h (we renamed the file) from
http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/emu10k1/emu10k1/ac97_codec.h

21 years agoaxe is commented out in GENERIC on pc98, so this wasn't needed.
murray [Mon, 21 Apr 2003 00:57:25 +0000 (00:57 +0000)]
axe is commented out in GENERIC on pc98, so this wasn't needed.

Pointed out by: Takahashi Yoshihiro <nyan@jp.FreeBSD.org>

21 years agoMove Bill Paul's new axe driver module to floppy disk 3 on i386 and
murray [Mon, 21 Apr 2003 00:10:26 +0000 (00:10 +0000)]
Move Bill Paul's new axe driver module to floppy disk 3 on i386 and
alpha, disk 2 on pc98, and keep it in the boot kernel for sparc64.

21 years ago - Lock the vm_object when performing either vm_object_clear_flag() or
alc [Sun, 20 Apr 2003 23:23:41 +0000 (23:23 +0000)]
 - Lock the vm_object when performing either vm_object_clear_flag() or
   vm_object_pip_wakeup().

21 years agoNote that KZPSC have ancient, non-upgradable firmware and that affects
obrien [Sun, 20 Apr 2003 22:27:44 +0000 (22:27 +0000)]
Note that KZPSC have ancient, non-upgradable firmware and that affects
the driver.

Submitted by: wilko

21 years agoDocument the KZPCA-AA.
obrien [Sun, 20 Apr 2003 22:13:50 +0000 (22:13 +0000)]
Document the KZPCA-AA.

21 years agoNote the Qlogic 1040 is a KZPBA in DEC-speak.
obrien [Sun, 20 Apr 2003 22:10:13 +0000 (22:10 +0000)]
Note the Qlogic 1040 is a KZPBA in DEC-speak.

Reviewed by: wilko

21 years agoDocument the DEC variants.
obrien [Sun, 20 Apr 2003 22:07:38 +0000 (22:07 +0000)]
Document the DEC variants.
Also note the model numbers for the AcceleRAID and eXtremeRAID variants.

Reviewed by: wilko

21 years agoDocument the DEC variants.
obrien [Sun, 20 Apr 2003 22:04:36 +0000 (22:04 +0000)]
Document the DEC variants.

21 years agoThe i386-specific asr manpage has been repo copied to the MI section.
obrien [Sun, 20 Apr 2003 22:01:37 +0000 (22:01 +0000)]
The i386-specific asr manpage has been repo copied to the MI section.

21 years ago - Update the vm_object locking in vm_map_insert().
alc [Sun, 20 Apr 2003 21:56:40 +0000 (21:56 +0000)]
 - Update the vm_object locking in vm_map_insert().

21 years agoMore terms.
murray [Sun, 20 Apr 2003 21:36:12 +0000 (21:36 +0000)]
More terms.

21 years agoMore terms.
murray [Sun, 20 Apr 2003 20:42:20 +0000 (20:42 +0000)]
More terms.

21 years ago - Lock the vm_object when performing vm_object_pip_wakeup().
alc [Sun, 20 Apr 2003 20:37:14 +0000 (20:37 +0000)]
 - Lock the vm_object when performing vm_object_pip_wakeup().
 - Merge two identical cases in a switch statement.

21 years agoAdd more FreeBSD specific terminology to help reduce false-positives
murray [Sun, 20 Apr 2003 20:35:18 +0000 (20:35 +0000)]
Add more FreeBSD specific terminology to help reduce false-positives
when spell-checking the FreeBSD documentation.

21 years agoRegenerate.
wpaul [Sun, 20 Apr 2003 20:17:10 +0000 (20:17 +0000)]
Regenerate.

21 years agoAdd support for the Netgear FA120 and the D-Link DUBE100 (AX88172-based
wpaul [Sun, 20 Apr 2003 20:15:42 +0000 (20:15 +0000)]
Add support for the Netgear FA120 and the D-Link DUBE100 (AX88172-based
devices).