obrien
23d5786094
Sync with Creative's 8010.h rev 1.39.
2003-04-18 04:13:38 +00:00
grehan
f1e6671946
Remove reference to ata resource in print_child.
2003-04-18 02:47:12 +00:00
grehan
2a6899a008
Remove sparse address hack.
2003-04-18 02:46:12 +00:00
grehan
a907ab9da4
Vastly simplify the macio ATA attachment, now that the register file
...
indirection is handled in the ATA common code.
2003-04-18 02:43:23 +00:00
grehan
bb63ad371c
Remove sparse addressing hack. The macio ATA driver no longer requires
...
this.
2003-04-18 02:42:27 +00:00
grehan
185952a327
- Convert NetBSD-derived macros to inline functions for better
...
type-checking and future debug code.
- Remove sparse addressing hack, since the only consumer, the macio ATA
driver, doesn't require it anymore.
2003-04-18 02:38:10 +00:00
jwd
2efab590ba
continuation not needed
2003-04-18 02:30:40 +00:00
gshapiro
2c5f033673
The sendmail binary now has a reasonable default for MaxMimeHeaderLength
...
built in. No need to set it here.
MFC after: 1 week
2003-04-18 01:25:41 +00:00
nectar
381ebbf8d2
The default if nsswitch.conf(5) is not present is supposed to be the
...
hated `compat' source, not `files'.
Reported by: Philip Paeps <philip@paeps.cx>
Sponsored by: DARPA, Network Associates Laboratories
2003-04-18 01:00:37 +00:00
julian
0e096a3dd1
Add a thread_unlink() and use it.
...
It could also be used twice in kern_thr.c but that's owned by jeff
so I'l let him change it when he's next there.
2003-04-18 00:16:13 +00:00
bde
5c54a6ed57
Fixed an err() format error in rev.1.1. This should have been fatal
...
since WARNS was high in rev.1.1, but __printf0like() has been temporarily
disabled for 9 months.
2003-04-17 22:39:32 +00:00
jhb
5adc19ca85
suser() does not need the proc lock, just the setting of P_PROTECTED in
...
p_flag needs the lock.
2003-04-17 22:38:27 +00:00
jhb
e1dd224437
- kthread's don't have p_textvp set to anything, so replace code that
...
dealt with that possibility with a KASSERT().
- No need to set P_SYSTEM, kthread_create() does that for us.
2003-04-17 22:37:48 +00:00
jhb
05864a7334
- Use a local struct proc variable to improve readability.
...
- Use a local variable to close a minor race when determining if the wmesg
printed out needs a prefix such as when a thread is blocked on a lock.
2003-04-17 22:36:40 +00:00
jhb
bffa90cc0a
Tweak locking in the PS_XCPU handler to hold the sched_lock while reading
...
p_runtime.
2003-04-17 22:33:04 +00:00
jhb
5023bfe74a
The sched_lock is not needed while clearing two of the P_STOPPED bits in
...
p_flag. Also, the proc lock can't be recursed, so simplify an older proc
lock assertion.
2003-04-17 22:31:54 +00:00
jhb
872336ea36
Don't assume that p_session hasn't changed out from under us after unlocking
...
the process and session. Instead, cache a true reference to the session
when we do the hold and release our reference on that session. This avoids
the need for the proc lock when dropping the reference.
2003-04-17 22:30:43 +00:00
jhb
a5725b28f3
Lock the sched_lock while setting TDF_INPANIC.
2003-04-17 22:29:23 +00:00
jhb
2cdea9a30c
Use TD_IS_RUNNING() instead of thread_running() in the adaptive mutex
...
code.
2003-04-17 22:28:58 +00:00
jhb
c94962975b
fork1() already sets PS_INMEM, so don't set it again. This lets us push
...
sched_lock down slightly so that it isn't needed in the RFSTOPPED case.
2003-04-17 22:28:28 +00:00
jhb
08b81c369f
- The prison mutex cannot possibly protect pointers to the prison it
...
protects, so don't bother locking it while we assign it to a ucred's
cr_prison.
- Fully construct the new credential for a process before assigning it to
p_ucred.
2003-04-17 22:26:53 +00:00
jhb
313b87d41a
Add some locking in for a few proc and thread fields.
2003-04-17 22:25:35 +00:00
jhb
ab40c1468e
- Push Giant down into the fork1() function a small bit.
...
- Set p_acflag earlier while already hold the proc lock in fork1().
- Mark the realitexpire() callout MPSAFE for new processes. It was already
marked safe for proc0 a long while ago.
2003-04-17 22:24:59 +00:00
jhb
b09e86b501
Adjust a few comments.
2003-04-17 22:22:47 +00:00
jhb
96015b90e0
Protect td_sigmask with the proc lock.
2003-04-17 22:21:57 +00:00
jhb
e517678fbb
Test the P_WEXIT flag while already hold the proc lock instead of right
...
after dropping it.
2003-04-17 22:21:05 +00:00
jhb
2e488b055b
Hold the proc lock across a wider range of fields that it protects.
2003-04-17 22:20:30 +00:00
jhb
9ac24ac564
Add some missing proc mutex unlocks.
2003-04-17 22:19:47 +00:00
jhb
f6f1e291b9
Don't drop the proc lock just to reacquire it after a few simple assignment
...
statements. Just hold the lock the entire time.
2003-04-17 22:18:07 +00:00
jhb
3d97448a8a
Remove a couple of unused symbols.
2003-04-17 22:17:28 +00:00
jhb
5ca5fe3105
- Use a local variable to close a minor race when determining if the wmesg
...
printed out needs a prefix such as when a thread is blocked on a lock.
- Use another local variable to close another race for the td_wmesg and
td_wchan members of struct thread.
2003-04-17 22:16:58 +00:00
jhb
92bdce0b61
Protect p_flag with the proc lock. The sched_lock is not needed to turn
...
off P_STOPPED_SIG in p_flag.
2003-04-17 22:14:30 +00:00
jhb
d4a3f193d0
- P_SHOULDSTOP just needs proc lock now, so don't acquire sched_lock unless
...
it is needed.
- Add a proc lock assertion.
2003-04-17 22:13:46 +00:00
jhb
9d63461efb
Add a proc lock assertion and move another assertion up to the top of the
...
function.
2003-04-17 22:12:12 +00:00
jhb
dea441a540
The proc lock is sufficient to test p_state against PRS_ZOMBIE, so don't
...
needlessly lock sched_lock.
2003-04-17 22:09:08 +00:00
jhb
5921ce0c8b
Don't hold the proc lock while performing sigset conversions on local
...
variables.
2003-04-17 22:07:56 +00:00
jhb
4b2bc05ffe
- Remove garbage SIGSETOR() that snuck into struct sigpending_args
...
definition.
- Use the proper constant for the last arg to kern_sigaction() in osigvec()
instead of a magic value.
2003-04-17 22:06:43 +00:00
jhb
e7a906488e
Use local struct proc variables to reduce repeated td->td_proc dereferences
...
and improve readability.
2003-04-17 22:02:47 +00:00
jhb
ac139f5914
Adjust a KTR trace to log thread state instead of proc state as that is
...
more relevant.
2003-04-17 22:01:01 +00:00
jhb
c4dbd4b4f2
P_SHOULDSTOP used to be p_stat == SSTOP and needed the sched_lock, now it
...
is protected by the proc lock and doesnt' need sched_lock, so adjust the
locking appropriately.
2003-04-17 21:58:45 +00:00
jhb
1ed25f3bbf
Protect the per-process UAC field with the proc lock where it isn't already
...
protected.
2003-04-17 21:57:16 +00:00
njl
fe07eb9dfb
Revise attach/detach resource cleanup
...
- Unconditionally call *_stop() if device is in the tree. This is to
prevent callouts from happening after the device is gone. Checks for
bus_child_present() should be added in the future to keep from touching
potentially non-existent hardware in *_detach(). Found by iedowse@.
- Always check for and free miibus children, even if the device is not in
the tree since some failure cases could have gotten here.
- Call ether_ifdetach() in the irq setup failure case
- ti(4), xl(4): move ifmedia_init() calls to the beginning of attach so
that ifmedia_removeall() can be unconditionally called on detach. There
is no way to detect whether ifmedia has been initialized without using
a separate variable (as tl(4) does).
- Add comments to indicate assumptions of code path
2003-04-17 20:32:06 +00:00
trhodes
9aba79052e
Add a manual page for the ntp_gettime syscall.
...
Reviewed by: ru, phk (older version).
2003-04-17 18:39:30 +00:00
jhay
6291491e7c
Get wlread() closer to working. Use m->m_len as the initial value for
...
bytes_in_mbuf rather than MCLBYTES. Add the ethertnet header to the
front of the mbuf. Adjust bytes_in_mbuf inside the loop that reads
the packet out of the card.
2003-04-17 17:51:24 +00:00
jhay
d0e23a2bfc
Add locking to wlinit().
2003-04-17 17:45:58 +00:00
trhodes
24d5a111cf
Quick grammar fix.
2003-04-17 17:36:31 +00:00
trhodes
c4a16a04fc
Add some tunable descriptions.
...
Submitted by: hmp
Discussed with: bde
2003-04-17 15:44:22 +00:00
bmah
7322c170dc
New release notes: ehci, pam_chroot(8), uudecode(1)/b64decode(1) -r,
...
vmstat(8) -f, gdtoa 20030324, lukemftpd 20030122, pkg_create(1) -C
conflict checking.
2003-04-17 15:43:59 +00:00
jhay
6db76a0df6
Put the spl calls back until we are sure that everything that they cover
...
are locked.
2003-04-17 15:42:30 +00:00
trhodes
3254b8d183
Pre-content whitespace commit.
...
Discussed with: bde
2003-04-17 15:39:12 +00:00