Commit Graph

88451 Commits

Author SHA1 Message Date
ad ce6391eedf kthread_exit: l->l_name could be NULL. 2007-07-10 23:06:56 +00:00
perseant 9a05fc1f4a Move the "vp = NULL" assignment after the code that requires vp != NULL.
Reported by Chris Ross on current-users.
2007-07-10 23:06:24 +00:00
ad 010df7a998 Make the regression test build again. 2007-07-10 22:58:54 +00:00
ad 7a863e51a0 Adjust to match callout_init signature change. 2007-07-10 22:53:29 +00:00
ad 56161147f6 Define _CALLOUT_PRIVATE. 2007-07-10 21:26:00 +00:00
ad 75ff053010 Make netstat build again. I don't see why it has any business dumping
the raw contents of tcpcb but that's another story.
2007-07-10 21:12:32 +00:00
ad 80da99483e Don't exit an unheld mutex. 2007-07-10 21:05:03 +00:00
christos 04ecc134a7 fix printf format. 2007-07-10 18:25:50 +00:00
dsl b2278f08fe Put the 2 extra ioctls I added recently inside '#ifdef _KERNEL' and adjust
comments.
2007-07-10 17:16:49 +00:00
he ff92ad95e2 Protect the initialization of xen_timepush_co with #ifdef DOM0OPS,
like its declaration and other uses.
2007-07-10 16:27:58 +00:00
he bad1d53b6a Add an IPL_VM argument to comply with the new vmem_create() prototype,
as per hint from ad@.
2007-07-10 16:23:26 +00:00
nonaka faf0f43647 Fix compile failure occured kthread API changes. 2007-07-10 13:55:20 +00:00
tsutsui 12b13f1335 Fix more pesudo. 2007-07-10 12:15:00 +00:00
xtraeme 44af43c54b Add wpi(4). 2007-07-10 11:23:21 +00:00
hannken af689d2468 Restore the special lkt_held handling for softdep_disk_write_complete().
No more panics 'worklist_remove: lock not held' on DEBUG kernels.

Ok Andrew Doran <ad@netbsd.org>
2007-07-10 10:47:07 +00:00
hannken 149abfc10f Move `struct dquot' and its supporting functions from quota.h to ufs_quota.c.
- Make quota-internal functions static.
- Clean up declarations in quota.h and ufs_extern.h.  quota.h now has the
  description of quota criterions, on-disk structure, user-kernel interface and
  declaration of init/done functions.  All ufs quota related function
  prototypes go to ufs_extern.h.
- New functions ufsquota_init() and ufsquota_free() create or destroy the
  quota fields of `struct inode'.
- chkdq() and chkiq() always update the quota fields of `struct inode' first.
- Only ufs_access() explicitely calls getinoquota().

No objections on tech-kern@
2007-07-10 09:50:07 +00:00
yamt f71c4c0db9 sme_events_init: create seewq with IPL_SOFTCLOCK as it's accessed by a callout. 2007-07-10 06:32:08 +00:00
jklos 7e18461fc5 More updates to the cxgb stuff. Now it actually starts configuring and
talking to the hardware.
2007-07-10 06:07:54 +00:00
ad f7a8990f7b warning: 'apm_create_thread' declared 'static' but never defined 2007-07-09 22:58:52 +00:00
ad 6e8c73f729 - struct proc *sc_thread;
+       lwp_t   *sc_thread;
2007-07-09 22:56:41 +00:00
ad e8f24929ec Fix build with DEBUG. 2007-07-09 22:52:14 +00:00
ad 7e7fac7f09 Fix merge botch. 2007-07-09 22:44:07 +00:00
ad 57410029b0 Initialize callouts before use. 2007-07-09 22:24:38 +00:00
ad 164b0dbd39 Include stdbool.h for !_KERNEL. 2007-07-09 22:19:04 +00:00
ad 9c0dbdfc6e Fix 'duh' moment. 2007-07-09 22:08:18 +00:00
ad c63e04d3bd We got LWPs years ago.. 2007-07-09 22:02:00 +00:00
ad c21083c17f s/pagedaemon_lwp/pagedaemon_proc/ 2007-07-09 21:55:10 +00:00
ad 12ce333b02 Don't use lwp_t in areas not protected by _KERNEL. 2007-07-09 21:54:10 +00:00
ad e05e11c21a Fix build when not !NFSSERVER. 2007-07-09 21:29:09 +00:00
ad fc9f914da6 4.99.23 - partial merge from the vmlocking branch. 2007-07-09 21:13:56 +00:00
ad 88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
degroote 317bac119f Fix some conflicts in my previous commit.
Sorry for the bad commit

Thanks to dogcow@ for the report.
2007-07-09 20:29:06 +00:00
degroote 825b897d9b Sync the driver with the OpenBSD one
1/ Update the driver to use the new firmware images from Intel (2.14.3.)
2/ Read the list of supported channels from the EEPROM instead of having
   it hard-coded in the driver.
3/ Limit output power to what is specified in EEPROM.
4/ Decrease output power for highest OFDM rates to reduce distortion.
5/ Automatically adjust output power to temperature changes for increased
   throughput and range.
6/ Attach the adapter's onboard thermal sensor to the sensor framework.
7/ Replace 'magic' fields in structures with their correct definitions.
8/ Rewrite the firmware load in order to reduce the diff with OpenBSD one

NOTE2: you must install sysutils/wpi-firmware2 in order to use the new
driver

NOTE2: if you are using a channel not allowed by the regulatory domain
of your adapter, you will no longer be able to associate.

Thanks a lot for his hard work to damien@OpenBSD.org
2007-07-09 19:38:51 +00:00
gdt 413bfc8b37 ipsec4_splithdr: If m_len is too short, printf and drop it instead of
panicing.  Perhaps should be a pullup instead.  This happens very
occasionally on an ultrasparc with tunnel-mode ESP.
2007-07-09 19:11:05 +00:00
tsutsui e53c42e138 Hmm, pesudo seems pseudo of pseudo. 2007-07-09 11:46:21 +00:00
pooka 1828428de1 Don't drain a vnode's lock when we are cleaning it out. It still
might be used by upper layers in the vnode stack due to exported
lock pointers.  This introduces no difference to the normal case
and works around a problem where a lower layer vnode is cleaned
out before the upper layer due to forced unmount or revoke.  And
for cosmetics, set a vnode's lock export to NULL when it is cleaned
out.

per discussion with Bill Stouder-Studenmund on tech-kern
2007-07-09 11:35:20 +00:00
ad 73ebbed2a1 Remove kcont:
- There are no users in tree.
- Its functionality has largely been replaced by workqueues and generic
  soft interrupts.
- It's not MP friendly.
2007-07-09 10:05:26 +00:00
jklos b03f59f16f Boo boo - .h files don't go in here... 2007-07-09 01:14:05 +00:00
jklos 5bb1837e63 Added one last file for Chelsio support. 2007-07-09 01:08:22 +00:00
jklos 5731e0c1e1 More updates to Chelsio support files. It compiles, but almost certainly
doesn't work yet.
2007-07-09 00:53:52 +00:00
pooka 4b8065ff1e mntflushbuf() cargo cult comment mania cleanup. there is no mntflushbuf(). 2007-07-09 00:01:42 +00:00
pooka b7d4ee5f17 * allow unmount even if rootvp has a usecount > 1 provided that
MNT_FORCE is given
* decrease cargo cult index by getting rid of commented sections
  with mntflushbuf() in them - AFAICT the call was removed from our
  kernel over 13 years ago with the 4.4BSDlite import
2007-07-08 23:58:53 +00:00
bouyer afc9294f4e Add a bootstatic callback for dom0, which allows to take NFS boot informations
from the command line (nfsroot=, ip=) in the same way domUs did.
While there convert a for (;;) loop to TAILQ_FOREACH().
From Christoph Egger in private mail.

Make all bootstatic callbacks return the new NFS_BOOTSTATIC_NOSTATIC flag
when no nfs boot information is found on command line.
2007-07-08 21:14:14 +00:00
bouyer a92a400fbf Add a new BOOTSTATIC flag, NFS_BOOTSTATIC_NOSTATIC, which causes
nfs_bootstatic() to abort with EOPNOTSUPP. This allows a callback to
say that there is no bootstatic config, and the next NFS boot method should
be tried.
2007-07-08 21:08:09 +00:00
jmcneill b8b2ef4d41 If the USB legacy capability flag is not set, we mistakenly attempt to
clear it anyway by writing to PCI configuration register 0x00. Instead,
if this flag is not set, simply bail out from ehci_get_ownership.
2007-07-08 18:22:28 +00:00
ws a3d6358dce Fix "Fix a garbage in previous commit." in 1.10.
Hi, junyoung!
2007-07-08 11:44:08 +00:00
pooka 0bc323f5cd Initialize the link context in a signal frame to the receiving lwp's
link context instead of NULL.  Otherwise, if we got a signal while the
lwp had a link context set, the link context would be set to NULL upon
return from signal delivery.

christos@tech-kern: "I think you are right."
2007-07-08 10:19:21 +00:00
scw 9e1f0b7978 Bump SYMTAB_SPACE 2007-07-08 10:05:13 +00:00
pooka 91f8a6cda5 RCS Id police 2007-07-08 09:54:50 +00:00
pooka b6caa3be1b fix pasto: sigframe.sf_sc is of type linux_sigcontext 2007-07-08 09:41:00 +00:00