Commit Graph

169480 Commits

Author SHA1 Message Date
reinoud 5fc434dc18 Add a BUFQ_CANCEL() next to BUFQ_PUT() and BUFQ_GET().
BUFQ_CANCEL(queue, element) removes the specified element previously queued
on the queue. It returns NULL if it was not found on the queue and the
element if it was successfully removed.

Run trough tech-kern and changed name from BUFQ_REVOKE() by suggestion of
Jason Thorpe.
2008-04-30 12:09:02 +00:00
joerg 48d8e65bbd Exploit ci->ci_isources[slot] == source to simplify code. 2008-04-30 12:00:52 +00:00
tsutsui 2be642537b Make this compile (missing register prefix). 2008-04-30 09:59:42 +00:00
rmind 5d285c31ff Set minimal count of LWPs for catching to 1, and cache-hotness time to ~3ms 2008-04-30 09:17:12 +00:00
martin 4b1e6a65be Convert to 2 clause license 2008-04-30 08:20:03 +00:00
garbled 2faead5cd4 Note prep iso and fdc driver. Also note ofppc SMP. 2008-04-30 08:15:46 +00:00
tsutsui 9963e1d1ef Certainly this file is derived from src/sys/arch/x68k/include/intr.h,
so sync copyright notice with it.  Approved by martin@.
2008-04-30 08:13:24 +00:00
garbled 9789cfe276 Bootable CD support for prep. Finally. 2008-04-30 08:08:32 +00:00
jmmv b8f1187ff1 Fix build of these files after the vfs_trybusy change. Apply the same
modification done in compat/common/vfs_syscalls_20.c:1.27.
2008-04-30 06:49:23 +00:00
ad 10f791f083 kpreempt: fix a block that should only have compiled as C++... I gues
there is a parsing bug in gcc that let it through.
2008-04-30 00:52:22 +00:00
yamt d1de8f5e7f mutex_vector_enter: fix a typo in a comment. 2008-04-30 00:40:13 +00:00
ad 0329609eb4 Reapply 1.235 which was lost with a subsequent merge. 2008-04-30 00:30:56 +00:00
ad 3ddd716838 Back out previous. softnet_lock is no longer held for at_control. 2008-04-30 00:25:17 +00:00
ad 9ba64b51be Assembly _atomic_cas_up() for mips. PR lib/38482. 2008-04-30 00:17:34 +00:00
cegger c92d850bb3 AMD's APM Volume 2 says 'All control registers are 64bit in long mode'.
Fix the CR0 prototype to match this (the asm implementation is correct though).
OK ad
2008-04-30 00:16:30 +00:00
ad 5d794f8931 PR kern/38537 __HAVE_PREEMPTION requires MULTIPROCESSOR
Don't patch out the kernel_lock functions if ncpu == 1. We need it for
preemption, and it's used much less frequently than before.
2008-04-30 00:05:20 +00:00
ad e3610f1886 kern/38135 vfs_busy/vfs_trybusy confusion
The symptom was that sometimes file systems would occasionally not appear
in output from 'df' or 'mount' if the system was busy. Resolution:

- Make mount locks work somewhat like vm_map locks.
- vfs_trybusy() now only fails if the mount is gone, or if someone is
  unmounting the file system. Simple contention on mnt_lock doesn't
  cause it to fail.
- vfs_busy() will wait even if the file system is being unmounted.
2008-04-29 23:51:04 +00:00
ad 94ff46d894 This isn't needed any more. 2008-04-29 23:28:01 +00:00
scw 1de1c389bf Pull in some more changes from OpenBSD:
- replace rssadapt(9) with amrr for automatic rate control.
- don't blindly IFQ_DEQUEUE() then drop a Tx packet if there are no
  available Tx resources.
- move default MAC/BBP/RF settings from rt2661.c to rt2661reg.h.
- enable packet bursting when operating as a STA.
- implement new ic_updateslot() callback.
- in hostap mode, we defer update of the slot time until all associated
  STAs are notified with updated beacons.
- 802.11a uses a 16 microseconds short interframe space.
- Fix rt2661_set_macaddr() so that we don't override the "unicast to me"
  flag in RT2661_MAC_CSR3 when setting the MAC address.
- fix index of ERP information element in beacons.

Add a couple of tweaks of my own:

- The RX/TX BUSY flag should be the last thing written to a descriptor.
- Check and service any additional h/w interrupts before returning
  from the isr.

Tested in STA, AP, and Monitor modes. Tested with WEP, WPA, and WPA2 crypto.

Additional testing by xtraeme@
2008-04-29 22:21:45 +00:00
xtraeme dbce9233f7 Don't show statistics in sensors that will provide a percentage. 2008-04-29 21:46:17 +00:00
ad 4325f51a67 Adjust the help string for new options. 2008-04-29 21:35:47 +00:00
scw d05f8e9263 - Document RAS_START_ASM, RAS_END_ASM, RAS_START_ASM_HIDDEN, and
RAS_END_ASM_HIDDEN.
- Advise against implementing RASs in C.

See PR lib/38482 for details.

While here, remove clauses 3 and 4 from TNF license.
2008-04-29 21:06:28 +00:00
scw 4e2c4c42b4 Implement _atomic_cas_up() in assembly code as the compiler cannot be
trusted to generate fully restartable code sequences.

Addresses lib/38482 for ARM and m68000.
2008-04-29 20:57:50 +00:00
scw ebbad0004d Add convenience macros RAS_{START,END}_ASM() and RAS_{START,END}_ASM_HIDDEN()
to simplify coding RASs in assembly.
2008-04-29 20:50:42 +00:00
ad 5804d4a96d Minor correction to previous. 2008-04-29 19:19:29 +00:00
ad 9a4949249f Recognise two new boot flags:
-1 disable MP
-2 disable ACPI
2008-04-29 19:18:19 +00:00
ad 8816278aca Recognise the RB_MD flags. 2008-04-29 19:16:08 +00:00
ad e8acac827e Remove now bogus assertion. 2008-04-29 19:02:14 +00:00
joerg a1988014f6 Remove IOAPIC_HWMASK, it was never defined. 2008-04-29 18:47:18 +00:00
ad 971df547a1 kern/38502 ifconfig wi0 hangs
Don't acquire the socket lock for PRU_CONTROL.
2008-04-29 18:42:26 +00:00
ad 387c23dfb9 PRU_CONTROL: acquire bt_lock manually. 2008-04-29 18:41:06 +00:00
ad 68c83ab9c7 kern/38502 ifconfig wi0 hangs
Don't acquire the socket lock for PRU_CONTROL.
2008-04-29 18:35:14 +00:00
ad 9bdeb71266 cpu_switchto: if DIAGNOSTIC, assert not above IPL_SCHED. 2008-04-29 18:27:18 +00:00
ad baa3395f8f PR kern/38057 ffs makes assuptions about devvp file system
PR kern/33406 softdeps get stuck in endless loop

Introduce VFS_FSYNC() and call it when syncing a block device, if it
has a mounted file system.
2008-04-29 18:18:08 +00:00
ad bf797086e6 Don't try grabbing a zombie's p_reflock. 2008-04-29 18:13:24 +00:00
ad c47594f131 Replicate sbus fixes for PR kern/37540. 2008-04-29 18:08:03 +00:00
ad bf6eb72289 Another compile fix. 2008-04-29 18:07:11 +00:00
nakayama c887d75771 Make it compile again on big endian, and restore CVS keyword. 2008-04-29 17:48:43 +00:00
jdc 017de4a670 Revert the scrolling region change from revision 1.18, as this breaks (at
least) mutt:

  Only change the scrolling region if the window now has fewer rows.
2008-04-29 17:46:39 +00:00
tsutsui 44f3e60011 Fix (currently harmless) typo.
I'm not sure why autobuild (amd64) gets ICE with -Os while it works on i386..
2008-04-29 17:42:35 +00:00
ad 322906d197 solisten: don't leak lock if the socket is busy. 2008-04-29 17:35:31 +00:00
tsutsui 0219c7f5be Fix (almost harmless) typo. 2008-04-29 17:30:34 +00:00
jmcneill bfb86f013a Oh, so that's how you spell Legacy -- thanks spellcheck! 2008-04-29 17:27:38 +00:00
matt 00caca484f Change IPL_LEVELS to NIPL.
current_spl_level is dead.
2008-04-29 17:09:47 +00:00
ad b872c0e53d PR kern/37917 /bin/ps no longer shows zombies 2008-04-29 16:21:27 +00:00
ad a4c98bcccd Ignore processes with PK_MARKER set. 2008-04-29 16:21:01 +00:00
martin cf6ae11aea Pass the "right" softc to the soft interrupt handler 2008-04-29 15:59:34 +00:00
martin 9213a7cdc1 Record argument in soft interrupt handler 2008-04-29 15:57:56 +00:00
ad 1074fa7182 Ignore processes with PK_MARKER set. 2008-04-29 15:55:24 +00:00
ad ddeba2439c Ignore processes with PK_MARKER set. 2008-04-29 15:51:23 +00:00