Alan Cox
0fa05eae77
- Lock the vm_object when performing vm_object_pip_subtract().
...
- Assert that the vm_object lock is held in vm_object_pip_subtract().
2003-04-19 22:11:41 +00:00
Alan Cox
0d420ad3e6
- Lock the vm_object when performing vm_object_pip_wakeupn().
...
- Assert that the vm_object lock is held in vm_object_pip_wakeupn().
- Add a new macro VM_OBJECT_LOCK_ASSERT().
2003-04-19 21:15:44 +00:00
Alan Cox
ea08145b76
Lock the jumbo_vm_object when performing vm_page_alloc().
2003-04-19 19:13:25 +00:00
Maxime Henrion
6d63c80290
Make this file closer to style(9) paradigm.
2003-04-19 17:24:07 +00:00
Maxime Henrion
3566dff0d9
- Enable interrupts only at the end of epic_attach() when all the
...
other initializations succeeded.
- Initialize the TX and RX rings in epic_attach() rather than in
epic_init() where we're not supposed to fail. Similarly, free
the TX and RX rings in epic_detach() rather than in epic_stop().
- Change epic_init() to be a void function now that it can't fail.
Also change its parameter to a void * so that we have a correct
prototype for if_init.
- Now that epic_init() has a correct prototype, don't cast the
function pointer when initializing if_init.
- Fix nearby style bugs.
2003-04-19 13:51:24 +00:00
Poul-Henning Kamp
7220a9e779
Make more of the "hotspot" stuff generic:
...
Give the class a way to specify the necessary action for read/delete/write:
ALLOW, DENY, START or CALL.
Update geom_bsd to use this.
2003-04-19 10:14:39 +00:00
Poul-Henning Kamp
183a45f65e
Create a dedicated structure for holding hotspot information rather than
...
using slice structures for it.
2003-04-19 10:00:22 +00:00
David Xu
95bee4c365
Test next upcall time correctly.
2003-04-19 06:16:04 +00:00
David Xu
06ce69a720
Unbreak sigaltstack syscall. sigonstack is now a function and
...
want proc lock be held.
2003-04-19 05:04:06 +00:00
David Xu
588257e810
Use correct thread pointer.
2003-04-19 04:39:10 +00:00
David Xu
2bdf11638e
Don't return garbage in high 16 bits.
2003-04-19 02:40:39 +00:00
Peter Grehan
5a2409f32c
Fix compile warning - proc should have been thread.
2003-04-19 02:18:51 +00:00
Alan Cox
034b3d7a6f
o Update locking around vm_object_page_remove() in vm_map_clean()
...
to use the new macros.
o Remove unnecessary increment and decrement of the vm_object's
reference count in vm_map_clean().
2003-04-19 01:43:32 +00:00
Alan Cox
410cfc455e
Lock the vm_object in obj_alloc().
2003-04-19 00:30:36 +00:00
Maxime Henrion
f78a230c3c
- Correct a comment made bogus by my last commit.
...
- Use __FBSDID.
2003-04-19 00:28:49 +00:00
Maxime Henrion
8a2ec7627f
Various cleanups:
...
- Don't initialize if_output, ether_ifattach() does this for us.
- Use pci_enable_busmaster() instead of using pci_read_config()
and pci_write_config() directly.
- Don't try to enable I/O, bus_alloc_resource() does this for us.
2003-04-19 00:21:34 +00:00
Julian Elischer
d211967a52
Back out last commit.
2003-04-18 22:22:59 +00:00
John Baldwin
8b94a0616d
- Make sigonstack() a regular function instead of an inline and add a proc
...
lock assertion to it.
- SIGPENDING() no longer needs sched_lock, so only grab sched_lock to set
the TDF_NEEDSIGCHK and TDF_ASTPENDING flags in signotify().
- Add a proc lock assertion to tdsigwakeup().
- Since we always set TDF_OLDMASK while holding the proc lock, the proc
lock is sufficient protection to check its state in postsig() and we only
need sched_lock when clearing the actual flag.
2003-04-18 20:59:05 +00:00
John Baldwin
9eb78fcfd9
Synchronize the two linux_clone() implementations which includes a few
...
minor cleanups in both.
2003-04-18 20:54:41 +00:00
Robert Watson
535cf73341
Rather than check for M_PKTHDR and conditionally perform access control,
...
simply assert that M_PKTHDR is set using M_ASSERTPKTHDR().
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
2003-04-18 20:22:23 +00:00
John Baldwin
889a6b5845
Use the proc lock to protect p_singlethread and a P_WEXIT test. This
...
fixes a couple of potential KSE panics on non-i386 arch's that weren't
holding the proc lock when calling thread_exit().
2003-04-18 20:20:00 +00:00
John Baldwin
e77daab1af
Rename do_sigprocmask() to kern_sigprocmask() and make it a global symbol
...
so that it can be used by binary emulators.
2003-04-18 20:18:44 +00:00
John Baldwin
08865ba1d1
Add a couple of sched_lock asserts.
2003-04-18 20:17:47 +00:00
John Baldwin
02e878d97c
- Add a static function pgadjustjobc() to adjust the job control count for
...
a process group.
- Call pgadjustjobc() twice in fixjobc() to avoid code duplication and
improve readability.
- Use the proc lock to protect P_SHOULDSTOP() instead of sched_lock.
- Check to see if a process is PRS_NEW with sched_lock before trying to
lock its proc lock since the lock may not be constructed yet.
2003-04-18 20:17:05 +00:00
John Baldwin
ee6c1d2ed2
Hold the proc lock for curproc around sigonstack().
2003-04-18 20:09:04 +00:00
Robert Watson
2d3db0b823
Update NAI copyright to 2003, missed in earlier commits and merges.
2003-04-18 19:57:37 +00:00
Bruce Evans
f029471dbe
Backed out rev.1.57. This restores format checking functions like
...
err() again. All known err() format errors in src that developed
while format checking was broken have been fixed. Tested on i386,
alpha, ia64.
2003-04-18 18:59:34 +00:00
Julian Elischer
05f44fb980
Revert parts of 1.309 to allow processes to have a signal mask
...
independently from the threads again.
Will be adding code to use this soon..
2003-04-18 18:51:52 +00:00
John Baldwin
424da6cb60
Fix a bug in alpha_get_uac() that I introduced in revision 1.18. It is
...
supposed to return the uac of the parent process of the current process,
not the current process.
Pointy hat to: jhb
2003-04-18 18:06:32 +00:00
Prafulla Deuskar
a40f7e92e2
Tell the upper layer(s) that we support long frames.
...
Not doing this caused the vlan mtu to be reduced by 4 bytes.
Submitted by: Doug Ambrisko (ambrisko)
MFC after: 1 day
2003-04-18 17:36:13 +00:00
Alan Cox
49281fbf68
Update locking around vm_object_page_remove() to use the new macros.
2003-04-18 16:39:03 +00:00
MIHIRA Sanpei Yoshiro
97f9172896
Add support for Planex FNW-3602-T(CardBus 100M/10M).
...
Submitted by: kazz <kazz@v001.vaio.ne.jp>
Obtained from: [bsd-nomads:16637]
2003-04-18 15:42:25 +00:00
MIHIRA Sanpei Yoshiro
26954ebf4e
Sync to 1.48
2003-04-18 15:35:52 +00:00
MIHIRA Sanpei Yoshiro
2af37380c8
fix corega vendor id(use vendor string and product string)
...
Submitted by: imp
2003-04-18 14:52:14 +00:00
Andrew Gallatin
b37d8ead52
Don't grab Giant in slab_zalloc() if M_NOWAIT is specified. This
...
should allow the use of INTR_MPSAFE network drivers.
Tested by: njl
Glanced at by: jeff
2003-04-18 13:02:29 +00:00
Poul-Henning Kamp
11589318f3
KASSERT that NG_MKMESSAGE() is not called with mbuf flags.
2003-04-18 12:37:33 +00:00
Jeff Roberson
7cd650a972
- Set the ke_cpu field in sched_add() for interrupt and realtime threads
...
since they are going on the current cpu and not their previously assigned
cpu.
- sched_runnable() should only return true in the SMP case if the other
processor has more than one thread that is runnable. We can not steal
curthread.
- Change kseq_print() to accept the cpuid instead of a kseq pointer. This
makes use of this function in ddb much easier.
2003-04-18 05:24:10 +00:00
David E. O'Brien
aca6bb0d8c
Sync with Creative's 8010.h rev 1.39.
2003-04-18 04:13:38 +00:00
Peter Grehan
1fea81e0da
Remove reference to ata resource in print_child.
2003-04-18 02:47:12 +00:00
Peter Grehan
accf6b7248
Remove sparse address hack.
2003-04-18 02:46:12 +00:00
Peter Grehan
da5dcc52fc
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
Peter Grehan
5f9dfe1e17
Remove sparse addressing hack. The macio ATA driver no longer requires
...
this.
2003-04-18 02:42:27 +00:00
Peter Grehan
1e1e003218
- 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
Julian Elischer
d3a0bd78a8
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
John Baldwin
69297bf8c9
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
John Baldwin
cd4ed3b5b0
- 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
John Baldwin
213b19e9fb
- 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
John Baldwin
f5d5cb3c7c
Tweak locking in the PS_XCPU handler to hold the sched_lock while reading
...
p_runtime.
2003-04-17 22:33:04 +00:00
John Baldwin
b68e08498f
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
John Baldwin
b5a2bad175
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