Wes Peters
943927683f
Make P_PROTECTED not conflict with P_STOPPED_SIG. Replace
...
P_UNUSED100000 which is *truly* unused, until now.
Submitted by: Robert Drehmel <robert@zoot.drehmel.com>
2003-04-24 16:20:14 +00:00
Hidetoshi Shimokawa
a2da26fc1d
Fix printf warnings for i386 with PAE.
...
Submitted by: harti
2003-04-24 15:27:06 +00:00
Alexander Kabaev
5c352f0e5a
Fix a typo in UINT_MAX definition.
2003-04-24 14:25:38 +00:00
Dag-Erling Smørgrav
013466aa50
It seems that 1 was not a magic value as I thought, but a coincidence.
...
Instead of applying the adjustment to processes with a start time of 1,
apply it to all processes with a start time of less than 3600.
None of this would be necessary if the start times were recorded in ticks
instead of seconds and microseconds.
2003-04-24 12:12:06 +00:00
Tim J. Robbins
ceff7f2a48
Do a better job of calculating the RSS for swapped-out processes:
...
don't include the kernel stacks of swapped-out threads in the page count,
but do include the alternate kernel stack. jhb provided some helpful
comments on this.
PR: 49102
2003-04-24 11:03:04 +00:00
Hidetoshi Shimokawa
6c1acd010e
Fix printf warning for RELENG_4.
2003-04-24 09:27:17 +00:00
Tim J. Robbins
38dd7dee8a
Free mount credentials (mnt_cred) when freeing the mount struct
...
in failure cases to avoid leaking struct ucreds, and ultimately
leaking struct uidinfo references.
2003-04-24 08:16:06 +00:00
Hidetoshi Shimokawa
8fd36d4aa6
Add some IEEE 1394 OHCI chips.
...
Partially submitted by: Tetsuya Ryuchi <ryuchi@ryuchi.org>
PR: misc/51336
2003-04-24 07:29:52 +00:00
Alan Cox
875791f63d
- Move swap_pager_isswapped()'s prototype to a more logical place.
2003-04-24 05:29:27 +00:00
Alan Cox
b6e48e0372
- Acquire the vm_object's lock when performing vm_object_page_clean().
...
- Add a parameter to vm_pageout_flush() that tells vm_pageout_flush()
whether its caller has locked the vm_object. (This is a temporary
measure to bootstrap vm_object locking.)
2003-04-24 04:31:25 +00:00
Dag-Erling Smørgrav
1f7440d9f6
When filling out a kinfo_proc structure, if we come across a process
...
whose p_stats->p_start has the magic value 1, replace it with boottime.
Some users were apparently confused by the fact that ps(1) reported a
start time in early 1970 for system processes.
2003-04-24 03:37:59 +00:00
David Xu
e63c419732
Don't print anything for fault at cpu_switch_load_gs, just like other
...
code to recover fault in doreti because of invalid segment registers,
silently push error to userland.
2003-04-24 01:48:59 +00:00
Archie Cobbs
c1404dc060
Tweak to previous commit: increment ifp->if_iqdrops if the m_copy() fails.
...
Suggested by: Neelkanth Natu <neelnatu@yahoo.com>
2003-04-23 23:45:57 +00:00
Warner Losh
9598fb9322
1. Allow drivers to query CIS strings from OLDCARD.
...
2. Include backwards compatibility good for the moment (eventually will
be turned off in current, but allow for a short transition period).
PR: 51333
Submited by: Scott Mitchell (1)
MFC after: 2 weeks
2003-04-23 23:39:21 +00:00
Warner Losh
d6b4602222
Add accessor for cis4 string. Neither OLDCARD nor NEWCARD support
...
this yet, but that will change soon.
Pr: 51333
Submited by: Scott Mitchell
2003-04-23 23:32:53 +00:00
Alexander Kabaev
6fd839f9c7
Add a new sys/limits.h file which in turn depends on machine/_limits.h
...
to get actual constant values. This is in preparation for machine/limits.h
retirement.
Discussed on: standards@
Submitted by: Craig Rodrigues <rodrigc@attbi.com> (*)
Modified by: kan
2003-04-23 21:41:59 +00:00
Poul-Henning Kamp
0a9c130c06
Introduce a g_waitfor_event() function which posts an event and waits for
...
it to be run (or cancelled) and use this instead of home-rolled versions.
2003-04-23 21:28:27 +00:00
Poul-Henning Kamp
a974614b05
More of the event stuff can now be private to geom_event.c
2003-04-23 20:54:42 +00:00
Poul-Henning Kamp
8cd1535a24
Rename g_call_me() to g_post_event(), and give it a flag
...
argument to determine if we can M_WAITOK in malloc.
2003-04-23 20:46:12 +00:00
Poul-Henning Kamp
d98777f8db
Remove the now unused hardcoded g_post_event() event support.
2003-04-23 20:25:33 +00:00
John Hay
d8422795fa
Use bus_space*() instead of in*() and out*().
2003-04-23 20:22:32 +00:00
Poul-Henning Kamp
9ab3ea7841
Turn EV_NEW_PROVIDER into a g_call_me() event.
2003-04-23 20:16:13 +00:00
Poul-Henning Kamp
f2e9a09494
Convert EV_SPOILED event to use g_call_me().
2003-04-23 20:06:38 +00:00
John Baldwin
cf60731b01
Remove Giant from osigblock(), osigsetmask(), and kern_sigaltstack().
2003-04-23 19:49:18 +00:00
Poul-Henning Kamp
9972896c00
Turn the hardwired NEW_CLASS event into a g_call_me() event.
2003-04-23 19:34:38 +00:00
Poul-Henning Kamp
b5cba4167f
Move the shutdown eventhandler stuff to a more logical place.
2003-04-23 19:15:27 +00:00
John Baldwin
48fdefd188
Update many of the locking notes and comments for struct
...
thread/kse/ksegroup/proc.
2003-04-23 18:54:30 +00:00
John Baldwin
5eac9e2dcb
The signotify() sanity check in userret() doesn't need Giant anymore.
2003-04-23 18:51:55 +00:00
John Baldwin
2056d0a168
Add lock assertions for various proc/thread/kse/ksegroup fields to the
...
scheduler functions.
2003-04-23 18:51:05 +00:00
John Baldwin
5afe0c9947
- 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.
2003-04-23 18:50:25 +00:00
John Baldwin
4d923fe3f5
Remove Giant from [gs]etpriority().
2003-04-23 18:48:55 +00:00
John Baldwin
112afcb232
- 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.
2003-04-23 18:46:51 +00:00
Archie Cobbs
79db6ff316
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>
2003-04-23 18:35:40 +00:00
John Baldwin
11edc1e0d7
Fix compiling in the NO_SWAPPING case.
...
Submitted by: bde (partially)
2003-04-23 18:21:41 +00:00
John Baldwin
c6004a6202
Fix a lock order reversal. Unlock the proc before calling fget().
...
Reported by: kris
2003-04-23 18:13:26 +00:00
John Baldwin
6faa2f6d6e
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
2003-04-23 16:49:53 +00:00
Dag-Erling Smørgrav
bd9155712b
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.
2003-04-23 15:51:36 +00:00
John Hay
e37d1c1488
Get rid of kvtop().
...
Change inb() and outb() to use bus_space*().
2003-04-23 15:40:11 +00:00
Poul-Henning Kamp
bf9ab27afb
Implement CONFIG_GEOM verbs "write label" and "write bootcode".
2003-04-23 08:23:01 +00:00
Poul-Henning Kamp
a357555867
Introduce a #define for the length of the bootloader code.
2003-04-23 08:04:30 +00:00
Poul-Henning Kamp
ca3d750e73
Introduce gctl_get_paraml() which gets a parameter only if it has the
...
right length.
2003-04-23 08:03:47 +00:00
Poul-Henning Kamp
fb9483af54
Make gctl_error() take printfline varargs.
2003-04-23 07:50:01 +00:00
Poul-Henning Kamp
668ae29c71
Remove unused event pointers in object structures.
...
Remove KASSERTS which checked that they were unused.
2003-04-23 06:54:44 +00:00
David E. O'Brien
2603007ace
Add /dev to the Alpha manual mount root example.
2003-04-23 05:02:40 +00:00
Don Lewis
8b3182e212
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().
2003-04-23 02:58:26 +00:00
Poul-Henning Kamp
b874183561
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.
2003-04-22 21:29:58 +00:00
Poul-Henning Kamp
b09d72daf8
We don't need to have a slice->start() function.
2003-04-22 21:24:37 +00:00
Poul-Henning Kamp
d3a1a13766
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.
2003-04-22 21:19:17 +00:00
Poul-Henning Kamp
ea9ab6bed2
Implement handling of CONFIG_GEOM OAM request.
2003-04-22 21:01:46 +00:00
Poul-Henning Kamp
2c30da600e
Add "CONFIG_GEOM" operation to the OAM API.
2003-04-22 21:00:49 +00:00