Commit Graph

156307 Commits

Author SHA1 Message Date
pooka eb8b0d493d LIBDPLIBS on puffs 2007-02-16 15:44:37 +00:00
ad 431bcb0874 Pacify lint. 2007-02-16 15:42:02 +00:00
hubertf 4aa8f11f5e Xref the firmware package, just like wpi.4 and iwi.4 do,
bump date.
2007-02-16 15:32:08 +00:00
ad 2d62904bd2 More spllowersoftclock() fallout. 2007-02-16 14:00:17 +00:00
tsutsui 31e60d91eb Include <machine/cpu.h> for struct cpu_info. 2007-02-16 13:56:24 +00:00
ad 36bb413e0d More spllowersoftclock() fallout. 2007-02-16 13:55:42 +00:00
tsutsui c9962e639e Set ER_RXSTAT_OWNER after all descriptor members are ready. 2007-02-16 13:43:57 +00:00
tsutsui 3fe4f9fc45 Make DMA descriptors volatile to avoid unintended reordering which might
cause some race condition.
2007-02-16 13:43:00 +00:00
ad d14a7576fc Fix spllowersoftclock() fallout. 2007-02-16 13:42:29 +00:00
ad 64c0514340 More vax changes. 2007-02-16 13:41:45 +00:00
tsutsui 990a39ff81 Remove hacks for now removed spllowersoftclock(9). 2007-02-16 13:27:00 +00:00
tsutsui 937ff586b1 RTK_HWREV_8100E_SPIN2 is a PCIe device so also check it
in rtk_setmulti() to handle quirk. Noticed by OpenBSD.
2007-02-16 13:01:48 +00:00
njoly 1fdc51be7d Fix incorrect voltage sensors range. It was using 7 numbers, where the
driver support only 5 voltage sensors.

ok by xtraeme
2007-02-16 12:46:11 +00:00
vanhu 496e74bcde From Olivier Warin: Fix a %zu in a printf. 2007-02-16 11:01:35 +00:00
vanhu 834d2e72c5 Fixed a %zu in a printf 2007-02-16 11:01:34 +00:00
oster 204d46e90b Fix typo from newlock2 merge, allowing MIPS64 to build again. 2007-02-16 03:30:48 +00:00
ad 4b2e60ca6b Add MUTEX_NO_SPIN_ACTIVE_P() to check if spin mutexes are held on
the current cpu. A generic version is provided if the architecture
does not provide one.
2007-02-16 03:10:12 +00:00
ad 3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
ad 26c2c3986f MUTEX_SET_WAITERS(): return zero if the mutex has become unheld. 2007-02-16 02:48:47 +00:00
ad 86e995e9d5 More MD changes to get vax compiling. 2007-02-16 02:17:42 +00:00
markd 94de172517 regen for i965Q 2007-02-16 01:35:53 +00:00
markd 5ef1becf96 Add i965Q 2007-02-16 01:35:04 +00:00
matt 53af1aa78b Partially adapt the VAX port to the newlock2 changes. These are untested
but they do at least compile.
2007-02-16 01:33:49 +00:00
xtraeme bebefe198b * There's no need to use an int to store the returned value of
ffs_checkver() and later use it in the switch statement, just
  use ffs_checkver.
* Remove unneded <sys/queue.h> header.
* Remove LFS from fstypes, it was never used.
* Increase SBCOUNT to 128, works faster.
* Remove unneded casts.
* (-F mode) close fd when the scan has finished or if pread() failed.
* (-F mode) print total size of file.
2007-02-16 01:32:21 +00:00
ad 57aa4fbf3b proc_free() was returning a NULL rusage pointer to wait() when a traced
process was reparented. Change proc_free() to copy the rusage to a buffer
on the stack if required, so it can be passed both to the debugger and
to the real parent process.

Fixes kern/35582 (kernel panics with gdb).
2007-02-16 00:39:16 +00:00
ad a72414e44c lwp_free(): pass curlwp to KERNEL_LOCK(), not 'l'. 2007-02-16 00:35:45 +00:00
ad 2b011d2fa7 sigswitch(): don't blat the kernel_lock count that sleepq_block() saved
earlier.
2007-02-16 00:35:20 +00:00
pooka 9212590495 * can't call unlink(2) & rmdir(2) in error paths. Rather, call
ops specified in the fuse op vector (or, if they're missing,
  we're SOL)
* great return value overhaul: return -ret to get linuxy -errno
  right for the kernel
2007-02-16 00:35:06 +00:00
pooka c18a22fa1f write to end-of-file in case of IOAPPEND 2007-02-16 00:16:39 +00:00
pooka 8d87a172a3 * first stab at create
* return proper return values from read/write
2007-02-16 00:13:02 +00:00
reed cfbdfbc5a7 Remove unused references to "clean_uucp" variable. (Code was already
removed.)

Add rebuild_whatisdb weekly variable that defaults to NO.
This is for running makewhatis weekly.
This defaults to NO because it is not needed using just base sets/default
install which provide the whatis.db file(s).
2007-02-15 23:04:10 +00:00
ad def3fb26c7 Add MUTEX_CLEAR_WAITERS(). 2007-02-15 22:52:42 +00:00
ad 58bb4135a9 - mutex_exit(): call mutex_wakeup() if there are waiters, since we have
already released the lock when we reach the waiters check.
- mutex_enter(): denote the start and end of the critical and export
  labels. If an LWP is preempted after grabbing the interlock, the dummy
  owner value (0xff000000) will persist, but the real owner value must be
  set soon to prevent deadlock. On entry to interrupt we'll need to check
  for this and set in the correct value if the LWP was interrupted in the
  critical section.
2007-02-15 22:49:35 +00:00
tron e3f6d993ed Increase the numbers of inodes available on the "/dev" MFS to 1280.
This should fix the "sysinst" problems caused by adding more devices
node to resolve PR port-amd64/35532.
2007-02-15 22:39:12 +00:00
dogcow 60918448c9 dipotre -> dioptre.
(nobody's noticed this typo since the file was originally added in 1993...)
2007-02-15 22:37:27 +00:00
dsl 486d411937 Add a -f (force) parameter to installboot(8).
If specified then checks on the disks BPB are not done, and any existing BPB
is deleted.
This is needed soince newfs(8) doesn't overwrite the BPB - which is basically
the FAT superblock.
Update documentation and add an example of using bootxx_fat16.
2007-02-15 22:23:11 +00:00
reinoud 9a5a59b59c Silly me, forgetting a \ 2007-02-15 22:17:39 +00:00
reinoud e397e5968a Add a B_FSPRIVATE flag in analogy to the B_DEVPRIVATE flag for private use
by file systems.
2007-02-15 22:12:37 +00:00
reinoud ea95b9efcd Forgot to update the flagbits to reflect the B_DEVPRIVATE 2007-02-15 22:09:30 +00:00
pooka 33cad1c7b0 No need to set read, readdir and write in the ops vector twice.
Pair up some ops while shuffling.
2007-02-15 21:57:09 +00:00
pooka 70247c3530 in case rootpath is "/", make dotdot lookup in "/foo" build
a path of "/", not ""
2007-02-15 21:26:50 +00:00
ad 087fdb9080 Count the number of CPUs at boot and stash in 'ncpu'. Eventually should
have each CPU register at attach, so we can figure out the topology for
the scheduler.
2007-02-15 20:32:47 +00:00
ad 2a34d8467a Fix load average calculation:
- Don't consider kernel threads when calculating the load average. Their
  priorities are no longer adjusted by the scheduler, and their level of
  activity is dependent upon running user processes.
- Change the (l->l_priority > PZERO) check in uvm_meter() to (l->l_flag &
  L_SINTR). I think this check was originally intended to weed out
  processes sleeping interruptably.
2007-02-15 20:22:43 +00:00
ad d91014721f Add uvm_kick_scheduler() (MP safe) to replace wakeup(&proc0). 2007-02-15 20:21:13 +00:00
pooka cd12688f17 Sanity-check linklen returned from file server in READLINK. 2007-02-15 19:50:54 +00:00
martin 3cc1de3d7b Add COMBRELOC support 2007-02-15 19:42:13 +00:00
pooka 76fead3a3e Readlink should place the length of the link (without terminating
nul) in the length field.  Make it so.
2007-02-15 19:33:51 +00:00
bouyer c2d281f97e Fix 2 panics with DIAGNOSTIC kernels:
- remove the code to bring down the PHY in bnx_stop(), it's wrong
  (ifm_data isn't updated) and lead to a panic in mii_phy_setmedia(),
  or reading past the end mii_media_table[].
- make sure the dma_map matches the mbuf in the rx structures. We would
  sync/unload the wrong map, leading to a DIAGNOSTIC panic, or eventually
  leaking memory when bounce buffers are needed.
2007-02-15 19:24:47 +00:00
christos 4ea9e53dee From Edgar: fix ino computation; allocate space for the superblock after
we know how big it is.
2007-02-15 19:00:11 +00:00
pooka a5855ee07b * slightly better dirfillers
* make readlink work
2007-02-15 18:35:16 +00:00