Commit Graph

160188 Commits

Author SHA1 Message Date
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
christos
4d0c78dab0 PR/36624: Edgar Fu: sshd should not check pw_{expire,change} if UsePam is
enabled. This is what the "portable" version of openssh does.
2007-07-10 15:48:56 +00:00
christos
a39c84a8c3 PR/36623: Edgar Fu: ssh publickey authentification fails if homedir not present
Removed extra realpath check that was introduced by a bogus merge.
2007-07-10 14:56:25 +00:00
nonaka
faf0f43647 Fix compile failure occured kthread API changes. 2007-07-10 13:55:20 +00:00
yamt
cebe06e8e7 use pthread_create instead of fork. 2007-07-10 13:52:51 +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
dogcow
7b060c43f2 exposure of bool elsewhere in the code requires the addition of stdbool;
in addition, proc.c cleverly has a variable that was initially defined "int",
but had in the actual declaration "bool". oops.
2007-07-10 00:30:23 +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
dea8adf74d 'true' is a C99 keyword. 2007-07-09 22:28:13 +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
he
72c424ca31 Bump the disk image from 3200 to 3500k so that the contents fits again. 2007-07-09 21:35:59 +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
7440188711 Update the man page to reference the use of a new firmware for wpi. 2007-07-09 19:59:40 +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
jmmv
899297d564 Treat -cxx-isystem as -isystem-cxx. Not really required by our code, but
I discovered this while trying to add a host tool written in C++.
2007-07-09 15:27:10 +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
pooka
fb503062d5 add IO_NDELAY 2007-07-09 09:28:48 +00:00
pooka
52c5d7c979 * support non-blocking read/write
* support seek (or actually support failing to seek ...)
2007-07-09 09:28:21 +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
pooka
181c165c35 bring up-to-date 2007-07-08 17:25:26 +00:00
pooka
3541e44ce7 g/c leftover 2007-07-08 17:24:41 +00:00
pooka
a43c6db049 play it safe: ignore sigpipe 2007-07-08 17:13:24 +00:00