yamt
1b31a2b6a0
- introduce a function, i82489_icr_wait, which waits for
...
LAPIC_DLSTAT_BUSY cleared, and use it where appropriate.
- panic if lapic's busy too long and DIAGNOSTIC.
2004-06-05 07:15:57 +00:00
yamt
26239e60ec
a comment about SBLASTRECORDCHK and SBLASTMBUFCHK.
2004-06-05 07:14:05 +00:00
dyoung
9494e60fdb
No need to detect and exit on short 802.11 packets, since
...
ieee80211_input will do that (and tap the packet).
2004-06-05 07:12:45 +00:00
jdolecek
88edd838ec
set 'frag' size to the same value as the file system block size, so
...
that userland would pick up correct size of unit (it uses lower of
these values as the size of one 'block' for f_blocks et.al.)
fixes PR bin/25319 by Juan RP
2004-06-05 06:28:11 +00:00
mycroft
4713b8ea6e
Remove a couple of items that are done now. XXX Is the first one also done?
2004-06-05 03:14:45 +00:00
bouyer
851ca6fa98
Don't try to bus_space_subregion() registers that didn't get mapped.
...
Problem reported and fix tested by Kurt Schreiner on port-alpha.
2004-06-04 21:15:00 +00:00
thorpej
85c0b77956
twe_ccb_map(): Remove the DEBUG panic case of "unknown" S/G list offset.
...
In all likelihood, this is a command passed from userspace management
tools where no S/G list is needed because no data is being passed.
2004-06-04 20:11:17 +00:00
uch
c58b450e06
fix hd64461video_get_clut.
2004-06-04 13:23:34 +00:00
skrll
b00b102b41
Allow for struct sigacts being greater than PAGE_SIZE on sun2. sun2
...
-current kernels now work again.
Reviewed by Matt Thomas. Thanks.
2004-06-04 12:23:50 +00:00
he
72160a1d69
In order for netstat for the vax port to build, add a forward
...
declaration of "struct proc" for usage outside the kernel.
2004-06-04 09:49:12 +00:00
he
94319b09bc
Need to forward-declare "struct timespec" because the new ffs_snapshot()
...
function declaration refers to it. Fixes build problem of sbin/badsect
for the vax target, which still uses gcc 2.95.3.
2004-06-04 07:43:56 +00:00
sekiya
f7212a9a5d
Use the SPLAY_* macros. Copied from the i386 pmap, okay'ed by fvdl@
2004-06-04 07:42:33 +00:00
thorpej
e33c2bb5d5
Add the %MAKEOPTIONSAPPEND token at the end of the file, after the
...
common Makefile.kern.inc has been included.
2004-06-04 04:45:49 +00:00
thorpej
6c0c39322a
Wrap a noisy probe message in FD_DEBUG.
2004-06-04 01:12:04 +00:00
nathanw
956448b619
Initialize simple_lock in struct cwd; otherwise, one gets an
...
uninitialized lock panic at the first use of cwdshare().
2004-06-03 20:35:30 +00:00
christos
6a5f1d6689
return ENODEV if functions are not compiled in the kernel.
2004-06-03 19:04:58 +00:00
heas
4a60d04fc7
Double the time we wait for the attention bit following a soft reset (and make
...
the timeout message just a bit clearer), as the latest firmware appears to be
a bit slower.
OK from Jason Thorpe.
2004-06-03 18:07:30 +00:00
petrov
9b8bcb0518
Add DIAGNOSTIC in iommu_dvmamap_load if pmap_extract fails.
2004-06-03 06:17:05 +00:00
yamt
6c4915e34d
linux_sys_ioctl: map EPASSTHROUGH to EINVAL as sys_ioctl does.
...
otherwise, linux_syscall() returns garbage, at least on i386.
(it returns native_to_linux_errno[EPASSTHROUGH] where EPASSTHROUGH == -4.)
i choose EINVAL rather than ENOTTY, because linux's pipe returns it
and i think that it's a common case.
2004-06-03 01:53:28 +00:00
drochner
e7bdadd856
fix const'ificication, gcc-3.4 will notice it
2004-06-02 22:58:28 +00:00
martin
1cb74de1d2
From Peter Eisch: do not try to recover msgbuf on E450s, it fails just
...
like on E250s.
2004-06-02 20:23:35 +00:00
christos
aead610d35
Apply patch from "pandre" at netbsd.ports.i386, stops panic during attachment.
2004-06-02 18:36:06 +00:00
mycroft
d78e8eee67
Fix an extremely obvious bug in the handling of the bad block list: the "max"
...
block was being set 512x further out than it should be, causing rather severe
escalation of the error.
XXX WTF is the point of this shit, anyway? In most cases, the way you're
supposed to fix a bad block on an ATA disk is to rewrite it -- which will
either just transparently fix it, or spare it. This code actively prevents
that.
2004-06-01 20:53:03 +00:00
mycroft
a4135d1d48
Only downgrade modes due to an actual CRC error. Downgrading on other errors
...
is anti-social -- especially given that there's no way to upgrade again short
of rebooting.
Also, downgrade UDMA modes more slowly. It's entirely possible that they're
using an 80-wire cable, but it's just too long for the higher modes, or there
is minor crosstalk.
2004-06-01 19:32:30 +00:00
christos
c7d300d20b
White space changes only;
...
1. put value defines under the fields that they refer too, all the time
not just in some of the ioctls.
2. use #define<tab>value consistently.
2004-06-01 18:58:51 +00:00
christos
f7e75201b3
Re-group scrolling ioctl's and provide new numbers for them! (thanks to
...
John Heasley for catching that).
2004-06-01 18:49:46 +00:00
augustss
df613458d1
Use SPC-TAB after the word "options".
2004-06-01 16:29:36 +00:00
mrg
30005fde6f
#include <sys/device.h>
...
call ether_ifdetach() and if_detach() if attaching fails...
2004-06-01 15:17:49 +00:00
mrg
a596504c46
- update URLs for sigmatel.
...
- add entry for "SigmaTel STAC9758/59" (seen on a new emuxki card)
2004-06-01 13:35:59 +00:00
pk
c245462cb8
hpux_ioctl(): acquire a reference to the file.
2004-06-01 11:05:40 +00:00
pk
f0f0f16529
svr4_sys_ioctl(): acquire a reference to the file.
2004-06-01 10:38:39 +00:00
pk
c6c77837c9
sunos_ioctl(): acquire a reference to the file.
...
This also fixes a locking botch reported in PR#25738.
2004-06-01 10:27:39 +00:00
itojun
b834441eb5
update mtu value if outgoing interface changes with ipsec ops
...
(draft-touch-vpn case only?) iij seil team
2004-06-01 05:06:56 +00:00
itojun
56e182b708
there's no use to check privs on curproc in the input path. jinmei@kame
2004-06-01 03:13:22 +00:00
itojun
caf5cb18b4
avoid null pointer deref
...
remove wrong comment
yamt@netbsd
2004-06-01 03:05:26 +00:00
mhitch
43e1d0c297
Add AmigaDOS tools for the amiga, which end up in the "installation/misc"
...
directory of the release tree.
2004-06-01 02:25:09 +00:00
itojun
25f8b7acdc
recover kp_queue properly. yamt
2004-06-01 02:01:14 +00:00
matt
3c0ef6aa5f
Fix softnet intr handling (to be like the generic ppc softintr).
2004-06-01 00:49:41 +00:00
pk
69211c6484
cwdfree() signature has been changed to accomodate fine-grained locking.
2004-05-31 15:33:38 +00:00
pk
2560fefc23
Implement mutexes for file descriptor and current working directory access.
...
Fix a potential race condition when reallocating storage for file descriptors
(even for non-SMP kernels).
Add missing locks for `struct file' ref count updates.
2004-05-31 15:30:55 +00:00
tsutsui
f2e7679255
Fix usage of NULL, '\0' and "" again.
2004-05-31 14:04:59 +00:00
toshii
3c13bf058a
Add re.
2004-05-31 13:47:33 +00:00
sekiya
4ae860025d
Make pmap_collect() a NOP -- due to the way we deal with the four-level pte,
...
invalidating the entire address space results in multi-minute system hangs.
Okay'ed by fvdl@
2004-05-31 13:42:27 +00:00
tsutsui
2f3bdc714c
Handle CAPSLOCK correctly. Fixes port-hp300/4689.
2004-05-31 13:40:04 +00:00
hannken
7b03a4b40c
Once all block address modifications are done invalidate and
...
free all pages from the snapshot vnode.
2004-05-31 13:28:53 +00:00
dyoung
4d9e630e22
Don't set a frame's WEP bits, the 802.11 layer already has.
2004-05-31 11:42:00 +00:00
dyoung
17bc2a623e
Define several new registers for the ADM8211C/CR parts. Improve
...
old register descriptions.
2004-05-31 11:40:56 +00:00
itojun
78bf2102d3
correct kp_queue handling. yamt
2004-05-31 11:40:40 +00:00
dyoung
ee1c094dae
No need for ath_start to set the WEP bit in the frame header, the
...
802.11 layer does it for us.
2004-05-31 11:39:39 +00:00
dyoung
ac60cbd35f
It's only necessary to set do_encrypt in one place, so do that.
2004-05-31 11:28:48 +00:00
dyoung
3e45584fea
Cosmetic: fix comment typo, change bit-test style.
2004-05-31 11:28:03 +00:00
dyoung
c9f71eaeb7
Prevent ad hoc lossage: copy the SSID from a beacon into the
...
beacon-sender's ieee80211_node, if ni->ni_esslen == 0. This fixes
WEP for Matthew. I think that it also will save us from IBSS
splits.
Thanks again, Matthew Gream.
2004-05-31 11:12:24 +00:00
dyoung
a49a69d67a
If WEP is on, set a data packet's WEP flag when we 802.11-encapsulate
...
it. Credit: Matthew Gream.
2004-05-31 11:02:55 +00:00
dyoung
4d6f61112f
Name the shift, txpower << 2 -> LSHIFT(txpower, RF3000_GAINCTL_TXVGC_MASK).
2004-05-31 10:49:32 +00:00
itojun
e58a39bab9
need to fix kp_queue better...
2004-05-31 09:20:38 +00:00
itojun
4516a4dc00
on EAGAIN, set kp_queue again for the next wakeup. pointed out by yamt
2004-05-31 09:06:36 +00:00
yamt
2fd3d08b3d
lockmgr: add a comment about LK_RETRY.
2004-05-31 09:05:10 +00:00
dyoung
ab84dc7c5f
Wrap a line. Remove a useless comment.
2004-05-31 09:05:01 +00:00
yamt
bd2a784b57
vn_lock: add an assertion about usecount.
2004-05-31 09:02:51 +00:00
dyoung
97c923cdc2
Describe Tx/Rx state a little better using clue from the ADM8211C/CR
...
datasheet.
2004-05-31 09:00:24 +00:00
dyoung
e4e9f15d6a
Use bpf_mtap2.
2004-05-31 08:52:53 +00:00
yamt
7407c491c3
nfsrv_create: fix an LP64 problem for exclusive create.
2004-05-31 08:47:08 +00:00
itojun
7bd231952e
safer key_{spd,}dump. comment from yamt.
...
XXX is spl level ok?
2004-05-31 04:29:01 +00:00
schmonz
5f5633de40
Support userconf(4) ("boot -c"). Reviewed by Bill Studenmund.
2004-05-31 03:22:45 +00:00
wrstuden
a39afd9fea
Revert last two changes. Since union vnode private data do not follow
...
layerfs guidelines, whenever layerfs_snapshot() does something, it
won't be correct for unionfs.
2004-05-31 02:04:35 +00:00
yamt
59ba83d898
lockmgr: assert that LK_RETRY is not specified.
2004-05-30 20:49:04 +00:00
yamt
c2f93eb91f
vn_lock: don't pass LK_RETRY to VOP_LOCK.
2004-05-30 20:48:04 +00:00
yamt
305b098f04
use vn_lock instead of raw VOP_LOCK.
2004-05-30 20:46:25 +00:00
yamt
2209153ea4
lfs_gop_write: assert that ifile never come here.
2004-05-30 20:45:44 +00:00
tron
2295bcf960
Include "miscfs/genfs/layer_extern.h" to get prototype for
...
layerfs_snapshot().
2004-05-30 09:48:37 +00:00
grant
52620d764c
regen
2004-05-30 09:28:48 +00:00
grant
cd624764ba
add 2nd vendor ID for Chicony Electronics (0x0c45) and add Chicony
...
TwinkleCam USB camera (0x600d).
2004-05-30 09:27:56 +00:00
itojun
b4ea6633c0
fix SIOC*LIFADDR for IPv4. markus friedl
2004-05-30 06:37:07 +00:00
toshii
da3514b79e
rcsid
2004-05-30 03:51:48 +00:00
toshii
4b54ec9a22
Fix brokenness I introduced while debugging.
...
- initialize rxlenmask when 8139C+
- remove meaningless memsets.
2004-05-30 03:50:52 +00:00
toshii
b5fa366e57
Minor clean ups. No functional change.
...
- use RTK_RX_DESC_CNT where appropriate
- remove unused members
2004-05-30 03:43:26 +00:00
wrstuden
fc8849c40a
unionfs can use layerfs_snapshot() too.
2004-05-29 23:49:31 +00:00
wrstuden
67a15e9a78
Add layerfs_snapshot() as a handler routine for VFS_SNAPSHOT() calls
...
through a layered file system.
Note: we don't actually support snapshots through a layered file system,
and this routine returns an error. However we: 1) have clearly documented
what needs fixing (which isn't trivial to fix) and 2) if we do fix
this, all layered file systems can take advantage of it at once.
2004-05-29 23:48:08 +00:00
tron
1db853aa0f
Don't leak memory in VFS_MOUNT() if set_statvfs_info() fails.
2004-05-29 14:28:41 +00:00
darrenr
eda7e8d3e3
back out previous change - these diffs aren't what I'd tested.
2004-05-29 14:18:33 +00:00
sekiya
dabf5a69e2
Link rtl81x9.c when re* is defined (hi, Toshi!)
2004-05-29 12:12:28 +00:00
darrenr
15f2ef8f2c
add mmap(2) interface to bpf(4) devices, along with BIOCMMAPINFO ioctl call
...
for applications to interact with the bpf device for the purpose of using
mmap to examinen captured data.
2004-05-29 08:56:19 +00:00
christos
fd8537e01d
fix another scrolling use that leaked.
2004-05-29 02:04:56 +00:00
christos
b7aff9bc12
fix scrolling code that was not ifdefed.
2004-05-29 02:01:09 +00:00
thorpej
1c7d20a00d
satalink now needs the "sata" attribute.
2004-05-28 23:27:28 +00:00
thorpej
9eb22bdbc9
Use the common sata_speed() routine.
2004-05-28 23:26:58 +00:00
thorpej
f2da431235
Add common routines for SATA controllers. Right now, we have sata_speed(),
...
which reports the speed encoded in the SStatus register.
2004-05-28 23:26:27 +00:00
christos
1143925e65
move scroll function definition last.
2004-05-28 22:38:28 +00:00
christos
5369712097
PR/19925: David Ferlier: Add scrolling support to wscons
2004-05-28 21:44:51 +00:00
christos
7208404c41
PR/19925: David Ferlier: Add scrolling support to wscons.
2004-05-28 21:42:29 +00:00
wrstuden
6753c74560
Since VOP_UPCALL() has been a long time in coming, add this partial
...
fix for layered-file-removal. It will work for the case of accessing
and deleting a file through the layered file system. Accessing via
the layer and deleting on the underlying still won't work, nor will
accessing via complicated structures (like two umap layers over a
given file systems).
We still need VOP_UPCALL(), but this is better than things were before.
This patch has been discussed off & on for a while. This incarnation
was tested by hannken at netbsd dot org.
2004-05-28 18:55:20 +00:00
tsarna
f53a32e6c9
Refactor tpcalib and hpc* ports to make tpcalib MI, as discussed on tech-kern.
2004-05-28 17:52:06 +00:00
toshii
4ee3a39f89
Add re(4) RealTek 8139C+/8169/8169S/8110S PCI ethernet adapter driver,
...
from FreeBSD.
I haven't tested this code very well, but it seems to work fairly well
for me.
2004-05-28 15:35:41 +00:00
toshii
02598e7452
A couple of changes for adding re(4) (Realtek gigabit ethernet):
...
- add necessary members in rtk_softc
- make functions used by re(4) non-static
2004-05-28 15:21:32 +00:00
itojun
05c2e80700
remove debugging printf(), seems like mistakenly commited
2004-05-28 09:38:13 +00:00
thorpej
ef42d1cdb3
Add a "flush" operation so the array's write cache is flushed on
...
close and at shutdown.
2004-05-27 23:48:34 +00:00
thorpej
a8d1145d1b
Rename twe_tweio_command_handler() to twe_ccb_wait_handler() and expose it.
2004-05-27 23:47:23 +00:00
christos
3c138a44de
Regen
2004-05-27 20:21:12 +00:00
christos
19bc1974d9
PR/25731: Adam K kirchhoff: Audigy support with the emuxki driver.
2004-05-27 20:20:52 +00:00
jonathan
d25d3eb263
Rework to make FAST_IPSEC PF_KEY dumps unicast and reliable:
...
Introduce new socket-layer function sbappendaddrchain() to
sys/kern/uipc_socket2.c: like sbappendaddr(), only takes a chain of
records and appends the entire chain in one pass. sbappendaddrchain()
also takes an `sbprio' argument, which indicates the caller requires
special `reliable' handling of the socket-buffer. `sbprio' is
described in sys/sys/socketvar.h, although (for now) the different
levels are not yet implemented.
Rework sys/netipsec/key.c PF_KEY DUMP responses to build a chain of
mbuf records, one record per dump response. Unicast the entire chain
to the requestor, with all-or-none semantics.
Changed files;
sys/socketvar.h kern/uipc_socket2.c netipsec/key.c
Reviewed by:
Jason Thorpe, Thor Lancelot Simon, post to tech-kern.
Todo: request pullup to 2.0 branch. Post-2.0, rework sysctl() API for
dumps to use new record-chain constructors. Actually implement
the distinct service levels in sbappendaddrchain() so we can use them
to make PF_KEY ACQUIRE messages more reliable.
2004-05-27 19:19:00 +00:00
hannken
55db9c1eb7
Fixup last commit. fs->fs_active must be initialized.
2004-05-27 17:04:52 +00:00
mycroft
0a5a28eeae
Write the registers in the proscribed order -- sector,cyllo,cylhi (LSB first
...
for LBA). This make no difference with real devices, but the funky IDE
analyzer can't search properly if the order is wrong.
2004-05-27 16:47:35 +00:00
yamt
ee306471a7
remove an unused instance of VOP_UPDATE.
2004-05-27 12:55:07 +00:00
yamt
ffa2240d3b
- remove a comment which is no longer true.
...
- add "XXX vn_lock" comments where we can call VOP_READ/WRITE
without vnode lock held. (genfs_compat_*)
2004-05-27 12:53:25 +00:00
yamt
a08da7645d
regen.
2004-05-27 12:50:35 +00:00
yamt
9ae9b45731
update to match with the recent reality: getpages doesn't care about
...
vnode locks.
2004-05-27 12:49:09 +00:00
kochi
951c6675f8
don't compile acpi_madt.c unless options MPACPI is specified.
2004-05-27 11:26:33 +00:00
abs
30a421e70b
regen from pcidevs 1.626: Add ALI 'M5257 PCI Software Modem'
2004-05-27 11:10:45 +00:00
abs
29d7222fab
Add ALI 'M5257 PCI Software Modem'
2004-05-27 11:09:45 +00:00
simonb
cdf0f38110
White space nit.
2004-05-27 04:23:36 +00:00
christos
3d4ca09443
turn off debugging.
2004-05-27 03:56:49 +00:00
christos
bf3905ed0c
Add ptm device.
2004-05-27 02:57:24 +00:00
christos
917cdbbd9e
Unix 98 pty multiplexor device; original code from OpenBSD.
2004-05-27 02:56:38 +00:00
thorpej
aeb454bce4
Clean-up of use of "precomp". It is used as "features" everywhere, so
...
rename the fields in wdc_command as appropriate.
2004-05-27 02:23:12 +00:00
thorpej
46986953d0
In wdcccommand(), load wd_features, not wd_precomp, with the features
...
provided by callers.
From Jordan Rhody @ Wasabi.
2004-05-27 02:09:26 +00:00
jonathan
10c711c569
Fix bugs in SPD refcounts due to PCBpolicy cache, by backporting the
...
KAME sys/netkey/key.c rev 1.119 ke_sp_unlink()/key_sp_dead() logic.
I have been running a similar version for about 10 days now, and it
fixes the PCB-cache refcount problems for me.
Checked in as a candidate for pullup to the 2.0 branch.
2004-05-26 23:16:25 +00:00
abs
eb8a427e28
Adjust the reserved heap space based on memory size. This avoids running out
...
of heap on machines with large amounts of memory. Tested on 33MB RISC OS 4
and 128MB RISC OS 5 machines. Updated version to 3.40.
2004-05-26 23:13:03 +00:00
jonathan
527a13d4b5
Thanks to Andrew Brown for the heads-up that fast_ipsec still had
...
key_prefered_oldsa, defaulted to 1 (on): preferring old SAs, based on
the ill-concieved Jenkins I-D, is broken by design. For now, just
turn it off, as the simplest way to fix this in the 2.0 branch.
Next step is to rip it out entirely: it was always a bad idea.
2004-05-26 22:14:18 +00:00
hannken
712c432a06
Don't use VTOI(vp)->i_flags to test for snapshot devices. Will not work
...
for non-UFS file systems. Test for VBLK vnode instead.
2004-05-26 20:33:10 +00:00
kochi
2134725caf
ThermalZone improvement work by lha at stacken.kth.se, inspired from
...
FreeBSD thermal zone code. Minor style fixes and bugfixes by me.
2004-05-26 17:15:17 +00:00
christos
19c4641ff8
(off_t)(long) is wrong when it comes to kernel addresses [because on a 32 bit
...
machine if the high bit is set they turn negative]. Make an intermediate cast
to unsigned long.
2004-05-26 16:28:05 +00:00
hannken
d63a5c8e01
Make it compile without option FFS_EI.
2004-05-26 11:17:39 +00:00
itojun
2cb6995056
dump/spddump can now handle tons of records.
2004-05-26 02:59:15 +00:00
kleink
d42e56f0d5
General mixer initialization improvements around the MONO_IN/MONO_OUT/
...
PreAmp register, including a new MONO_IN mixer stage bypass mixer control;
inspired by (and fixing) PR kern/18342 from Stephen Ma.
2004-05-25 21:38:11 +00:00
kleink
26897a3b9b
Fix a shift-by-one-bit glitch in the MONO_OUT mixer register's definition;
...
from Stephen Ma in PR kern/18342.
2004-05-25 20:59:37 +00:00
thorpej
2ecdd552dc
Add the notion of "shadow registers" to the wdc driver. These shadow
...
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers. Right now, the two
shadows are:
- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)
Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.
Partially from Jordan Rhody @ Wasabi Systems, Inc.
2004-05-25 20:42:40 +00:00
hannken
8c21bc6224
Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.
...
- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
Snapshots may not be opened for writing and the attributes are read-only.
Use the mtime as the time this snapshot was taken.
Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
a vnode.
- Add snapshot support to ls, fsck_ffs and dump.
Welcome to 2.0F.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
2004-05-25 14:54:55 +00:00
is
c72c5843a8
My incarnation of the RPTI 400 card tells 0:0:0:0:0:0 when using the ASIC
...
to read the Ethernet address. However, as other OS's drivers suggest,
something which looks right is at offset 0x110.
2004-05-25 11:51:11 +00:00
atatat
53c625655c
Sysctl descriptions under vfs subtree
2004-05-25 04:44:43 +00:00
atatat
16122fe06c
Remaining sysctl descriptions under hw subtree (ath and bge)
2004-05-25 04:38:36 +00:00
atatat
4de3747b89
Sysctl descriptions under net subtree (net.key not done)
2004-05-25 04:33:59 +00:00
atatat
d37080bc2f
Sysctl descriptions under ddb subtree
2004-05-25 04:31:48 +00:00
atatat
db2f5beb7d
Sysctl descriptions under vm subtree
2004-05-25 04:31:17 +00:00
atatat
5b22e79ada
Remaining sysctl descriptions under kern subtree
2004-05-25 04:30:32 +00:00
atatat
190adb15c3
Sysctl descriptions under emul subtree.
2004-05-25 04:29:08 +00:00
atatat
100394ee13
The FAST_IPSEC code actually supports KEYCTL_PREFERED_OLDSA, so export
...
it via sysctl.
2004-05-25 04:00:33 +00:00
mhitch
4c9aff16f0
Addition of header files for sysctl set function prototypes referenced
...
structs defined in other header files. Gcc 2.95 on vax doesn't like this.
Add appropriate header files to fix vax compile failures.
2004-05-25 01:36:37 +00:00
tsarna
99e30caccf
+uep
2004-05-24 23:54:26 +00:00
tsarna
f7fae574cc
add uep driver
2004-05-24 23:50:11 +00:00
tsarna
6cf367d31d
"uep" a driver for USB eGalax touch-panels. These are commonly found on
...
Xenarc, Liliput, etc. small touchpanel LCD displays.
TODO:
- manpage
- calibration support (make hpc's tpcalib stuff more MI?)
- On i386 and other xfree-ish xservers, (currently-uncomitted) patches
are needed for X to honor wscons absolute mouse position events.
2004-05-24 23:48:36 +00:00
bouyer
5c594e4cc4
Add a delay(5000) between the ATAPI_SOFT_RESET and the channel reset.
...
Some ATAPI device never get out of busy if touched too fast after a reset.
Delay value from atapi_wdc.c; fix problem reported by Nicolas Joly on
current-users.
2004-05-24 20:45:30 +00:00
kleink
5c1882fdb9
Fix a glitch in the initial import: The XMAC hash function is actually
...
based on CRC32-_LE_.
From Christian Weisgerber in private mail.
2004-05-24 20:12:01 +00:00
jonathan
20f923718e
Change DIAGNOSTIC warning in nfs_send() about NULL rep->r_procp: the
...
warning is triggered pervasively, so print it only once per boot.
(The callers who pass NULL r_procps should soon be fixed to pass a
valid struct proc* ).
2004-05-24 19:08:07 +00:00
tsarna
b20d882c63
regen
2004-05-24 19:02:19 +00:00
tsarna
a0645ac0f8
Add IDs for eGalax USB touchpanel controllers.
...
Descriptions are not very good because the only documentation I have
says "the VID and PID may be one of these combinations", without any
additional information about the differences or even model names.
2004-05-24 19:00:42 +00:00
yamt
9080a4b746
instead of blindly set IF in MCOUNT_EXIT,
...
save eflags in MCOUNT_ENTER and restore it.
2004-05-24 14:01:10 +00:00
kleink
eb8c340ab9
In sk_init_yukon(), don't open-code clearing the multicast filter but
...
go via the normal filter setup path instead. The old behaviour only
worked ok as long as the init function was exclusively called at attach
time, when there was no configuration to be lost.
From Christian Weisgerber in private mail.
2004-05-24 10:06:59 +00:00
martin
b1998403bc
Back to SIZEOF_HEADERS.
2004-05-24 07:20:26 +00:00
christos
e944b1cdd8
Can't do the trick with using sbp as temporary storage; allocate memory
...
instead.
2004-05-24 03:09:48 +00:00
wiz
d406ce5c68
Fix typo reported by Alexander Yurchenko grange at rt mipt ru in private
...
mail.
2004-05-23 23:07:59 +00:00
kleink
8b9e7c1154
Change {u,}int_fast{8,16}_t to 32-bit types.
...
Note: While this is technically an ABI change I believe it is a
change that we can afford at this time (and to be pulled up to
2.0, which will be the first release for amd64). The types are
not widely used yet, and a survey of pkgsrc has not shown uses
that would be adversely affected by it.
2004-05-23 22:17:10 +00:00
christos
983359fdd3
put back the notyet around the note section; the bfd fix is non-trivial.
2004-05-23 21:11:01 +00:00
christos
0b36703edc
put back SIZEOF_HEADERS now that bfd is fixed; you will need to recompile
...
libbfd...
2004-05-23 18:09:44 +00:00
martin
ebfe3ad1ce
Instead of SIZEOF_HEADERS (which ld gets wrong) use 1024 for now.
2004-05-23 16:10:25 +00:00
tsutsui
a714bd16ef
Add some byteswap ops around DMA descriptors for big endian machines.
...
Tested on macppc by matthew green.
XXX This driver completely lacks bus_dmamap_sync(9) ops.
2004-05-23 11:37:25 +00:00
jdolecek
58218d4f0f
add comments for values returned from the SMB request info used for statvfs
2004-05-23 11:18:28 +00:00
yamt
345a3c375d
- for tcp, use SO_RCVTIMEO to recover from server crash.
...
otherwise we can be stuck in soreceive forever.
the problem is pointed by Minoura Makoto. PR/25662
- clear r_rexmit on reconnect and clear r_rtt and R_TIMING on retransmit
so that the above (and soft mounts) happy.
2004-05-23 08:08:48 +00:00
kochi
39dacd3455
prevent panic for machines without any ACPI MADT table.
2004-05-23 05:57:57 +00:00
christos
45fb41a2bd
cut down another 7K by more NFS_V2_ONLY ifdefs.
2004-05-23 05:53:01 +00:00
martin
aacd0f5586
Use 1024 instead of SIZEOF_HEADERS for now.
2004-05-23 01:15:05 +00:00
jonathan
349ad018c7
Remove now-unused variable.
2004-05-23 00:37:27 +00:00
kleink
25709a1d3a
POSIX: Permit a process without the appropriate privilege to change a
...
file's group ID to its effective gid, in addition to the presently
permitted set of supplementary gids.
From Mark Davies in PR standards/25401.
2004-05-22 23:24:23 +00:00
christos
42a255dd25
Unfortunately, we need to allocate space here. Pointed out by Juan RP.
2004-05-22 23:17:04 +00:00
jonathan
230fb9b8ab
Eliminate several uses of `curproc' from the socket-layer code and from NFS.
...
Add a new explicit `struct proc *p' argument to socreate(), sosend().
Use that argument instead of curproc. Follow-on changes to pass that
argument to socreate(), sosend(), and (*so->so_send)() calls.
These changes reviewed and independently recoded by Matt Thomas.
Changes to soreceive() and (*dom->dom_exernalize() from Matt Thomas:
pass soreceive()'s struct uio* uio->uio_procp to unp_externalize().
Eliminate curproc from unp_externalize. Also, now soreceive() uses
its uio->uio_procp value, pass that same value downward to
((pr->pru_usrreq)() calls for consistency, instead of (struct proc * )0.
Similar changes in sys/nfs to eliminate (most) uses of curproc,
either via the req-> r_procp field of a struct nfsreq *req argument,
or by passing down new explicit struct proc * arguments.
Reviewed by: Matt Thomas, posted to tech-kern.
NB: The (*pr->pru_usrreq)() change should be tested on more (all!) protocols.
2004-05-22 22:52:13 +00:00
christos
223d219efc
declare the correct variable; thanks Juan RP.
2004-05-22 22:13:50 +00:00
christos
28fc1ac65d
Enable notes section now that we added header space on the i386. Other
...
platforms might want to do the same.
2004-05-22 22:07:33 +00:00
christos
d70a6522f9
Use 1024 instead of SIZEOF_HEADERS, so that we can include a note section.
2004-05-22 22:06:54 +00:00
oster
5f5d81ce38
Add support for the word "absent" in the "disks" section of
...
RAID config files. Used as a placeholder for a component that
will eventually be added into the set.
2004-05-22 20:56:52 +00:00
christos
85699649e2
grr, forgot to take out the &
2004-05-22 20:53:26 +00:00
christos
9a0b176050
allocate memory for statvfs instead of using the stack.
2004-05-22 20:46:53 +00:00
christos
880fcd4a6e
simplify stats taking and avoid the extra copy on the stack.
2004-05-22 20:42:08 +00:00
christos
a441628d4c
we are copying all the infomation from statvfs here; we don't need an
...
intermediate copy on the stack.
2004-05-22 20:28:38 +00:00
kleink
a8f9b18e52
Bring back {u,}int_fast8_t back to 8 bits, as I had misunderstood Charles.
2004-05-22 14:16:59 +00:00
cube
c271a0dea6
According to acpi_acad.c and powerd(8), PRESSED event for AC adapter device
...
means it gets connected. It feels odd to be told the AC adapter went
offline right after plugging it in.
2004-05-22 11:32:50 +00:00
grant
e26fd850ec
add `scsibus* at umass?' so usb mass storage devices which attach to
...
sd@scsibus can be used out of the box.
whitespace tweak for wd* at umass?
2004-05-22 03:16:26 +00:00
kleink
dd80e25e65
Change {u,}int_fast{8,16}_t to 32-bit types, as the previous minimum-
...
width implementation was a rather poor choice. Per discussion with
Charles Hannum.
Note: While this is technically an ABI change I believe it is a
change that we can afford at this time (and to be pulled up to
2.0). The types are not widely used yet, and a survey of pkgsrc
has not shown uses that would be adversely affected by it.
2004-05-21 22:52:06 +00:00
heas
a60b59cc89
Map the ffb's DAC register space and add support for video "blanking"
...
(aka WSDISPLAYIO_{S,G}VIDEO).
2004-05-21 21:45:04 +00:00
bouyer
a6469740a4
If READ_FORMAT_CAPACITIES fails with "Medium Format Corrupted" ASC/ASQ error,
...
handle it as if the drive was not formatted, so that "scsictl sdx format"
can open the raw device.
2004-05-21 21:14:11 +00:00
bouyer
c88ebc6e3e
Add support for the DIOCCACHESYNC ioctl.
2004-05-21 20:35:53 +00:00
heas
de28b23591
ffb wsdisplay type should be sunffb/SUNFFB
2004-05-21 19:21:31 +00:00
kochi
79431a3d74
Fix panic / bogus PCI bus detection.
2004-05-21 16:22:05 +00:00
kochi
1b9c589055
Clean up variable usage.
2004-05-21 16:20:36 +00:00
kochi
cf6dbb07cc
Make sure we don't use the same bus number for PCI and ISA.
2004-05-21 16:19:25 +00:00
kochi
efd20e5cdf
Back out bogus node check of revision 1.22.
...
This check is not necessary.
2004-05-21 16:17:48 +00:00
kochi
9d0aaa11b9
add some comments, make local variables/functions static and some style fix.
2004-05-21 16:15:03 +00:00
he
cdb8aaf716
Bump ramdisk size from 800k to 900k so the contents fit again.
2004-05-21 15:25:18 +00:00
yamt
7a6774551d
enable reply cache for connection oriented protocols as well.
...
linux retransmits rpcs even when using tcp.
2004-05-21 13:53:40 +00:00
he
8e58484dd6
Adapt to the statfs -> statvfs changes.
2004-05-21 08:35:00 +00:00
atatat
a1296cdfe4
Whitespace nits
2004-05-21 03:30:40 +00:00
jonathan
c8c7a6dbab
With FAST_IPSEC, include <netipsec/key.h>, as Itojun's recent changes
...
now require KEY_FREESAV() to be in scope.
2004-05-20 22:59:02 +00:00
bouyer
eea7ca5986
Rmove a redundant BUS_DMASYNC_POSTREAD | BUS_DMASYNC_POSTWRITE, and fix
...
another one (POST -> PRE)
2004-05-20 20:57:50 +00:00
christos
bd67b97d6a
PR/25622: IPV6 return RST and through cloned interfaces was broken.
...
- checksum was computed incorrectly.
- ipv6 packet was not initialized properly.
- fixed code to be more similar to the v4 counterpart.
2004-05-20 13:55:31 +00:00
christos
b78a596c7a
PR/25646: Perry Metzger: Commit a patch that compiles awaiting feedback.
2004-05-20 13:54:19 +00:00
martin
479d5e8fca
We need sigdebug and sigpid not only for COMPAT_16, but also SVR4 and
...
SunOS, so move it to a more generic place and fix the ifdefs.
Fixes PR port-sparc64/25650.
2004-05-20 11:36:43 +00:00
martin
16cb7d6f69
Make sure that we call uplcom_set_line_state() to get consistent state
...
between our idea of flow controll settings and the chips one.
In uplcom_set_line_state use the same value as the manufacturer suggests,
since the previously used (umodem based) values do not seem to work.
It is not completely clear what happened here - either the "not calling
uplcom_set_line_state" due to luck prevented the non working state to
be discovered or there are variants of the chip that need the old values.
During testing none such chips have been found - if they ever apear we
might have to make this function more intelligent, depending on the chip
in use.
2004-05-20 09:23:33 +00:00
atatat
10a7ba9ef6
Tweak sysctl setup functions (the macros, actually) for use in lkms,
...
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.
This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.
linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).
2004-05-20 06:34:24 +00:00
atatat
1d3a6a329e
Explicitly call pool_init() (and pool_destroy()) when being built as
...
an _LKM.
This adds pools to the list of things that lkms must do manually
because they're set up with link sets. Not that there's anything
wrong with link sets, but that we need to try harder to remember that
lkms are second class citizens. Of a sort.
2004-05-20 05:39:34 +00:00
atatat
dcf1a79f46
Add a DIAGNOSTIC check to detect un-initialized pools.
2004-05-20 05:08:29 +00:00
heas
d07b682ed3
add DAC command/value register offsets
2004-05-20 01:50:43 +00:00
petrov
45a1b56bc0
De-_P()fy, remove not MULTIPROCESSOR defines for sparc64_ipi_xxx.
2004-05-20 00:56:12 +00:00
petrov
1f82a4c90e
ifdef protection for sparc64_ipi_ function calls.
2004-05-20 00:52:58 +00:00
abs
3c2fbd8521
Add qsort to libsa (taken from sys/dev/vinum/vinumqsort.c) and use instead of
...
bubblesort in acorn32 bootloader. Reduces time to sort memory on A710 equipped
RiscPC from over twenty seconds to effectively instantaneous.
Update boot version to 3.30
2004-05-19 23:37:41 +00:00
he
7ce138ffc9
Hm, let ipfresend also compile; move <machine/intr.h> include
...
in under the _KERNEL_OPT define.
2004-05-19 23:15:43 +00:00
he
78e8bae64a
Since we are using the spl() functions here, also include <machine/intr.h>.
2004-05-19 22:50:09 +00:00
he
df7ebfa9c3
Move variable declaration up before the code. Fixes compile error
...
for vax, and also conforms better to KNF.
2004-05-19 22:02:05 +00:00
itojun
32e4b55076
do not loop on nd6_output() when transmission fails. from kame
2004-05-19 17:45:05 +00:00
darrenr
e6416b1b3c
rather than just try to get a mapping from a device as only PROT_EXEC, work
...
down the list of protections until either we run out or we find one that the
device is willing to work with.
2004-05-19 13:20:27 +00:00
darrenr
643574e764
reapply a change that got undone with more recent changes to bpf to wakeup
...
any sleepers _after_ the device info has been updated, not before.
2004-05-19 13:09:11 +00:00
yamt
58912348a7
lfs_cluster_aiodone: turn an invariant condition into an assertion.
2004-05-19 11:29:32 +00:00
he
c9a13e2ac5
Include <machine/kbdmap.h> only outside the kernel, as that file
...
isn't present in that location in the source tree.
2004-05-19 08:44:20 +00:00
gavan
34762c053a
Claim maximum available memory during boot32 startup. This removes
...
the need to explicitly set the WIMP slot size before running the bootloader.
Conditional on BOOT_MAXIMISE_MEMORY, so as not to interfere with potential
future uses of libriscos.
Also remove references to increasing WIMP slot size, as this is now
meaningless.
2004-05-18 23:29:30 +00:00
christos
c046c90643
- remove superfluous assignment
...
- rt_gateway is already a pointer to struct sockaddr; don't take its address
when assigning it to struct sockaddr_in *
2004-05-18 21:47:45 +00:00
he
09b074c177
Add some mulitple include protection.
...
Include kbdmap.h from iteioctl.h so that kdump compiles, otherwise
the size of struct kbdmap as used in various ioctl defines is unknown.
2004-05-18 20:08:51 +00:00
christos
0d17293b81
Fix buffer overrun in in_pcbopts() (FreeBSD PR/66386)
2004-05-18 16:47:08 +00:00
nathanw
78c16ce8ed
Adjust code that tries to prevent cc_microtime() from going backwards
...
so that it doesn't fire when called twice in the same microsecond,
which can lead to large error accumulation.
Appears to fix "repeated gettimeofday() goes backwards" on a fast
alpha and i386 box.
2004-05-18 16:09:07 +00:00
chs
6e6e8ad7fe
convert pmap_deactivate() from a macro to an inline function
...
so that the kernel builds again.
2004-05-18 15:33:11 +00:00
itojun
4ebcfcf29a
fix MD5 signature support to actually validate inbound signature, and
...
drop packet if fails.
2004-05-18 14:44:14 +00:00
yamt
efc80878d1
use lockstatus() instead of L_BIGLOCK to check if we're holding a biglock.
...
fix PR/25595.
2004-05-18 11:59:11 +00:00
yamt
b4831906b2
introduce LK_EXCLOTHER for lockstatus().
...
from FreeBSD, but a little differently. instead of letting lockstatus()
take an additional thread argument, always use curlwp/curcpu.
2004-05-18 11:55:59 +00:00
ragge
ac1e5c0888
Fix connect() "bug": If connect() is interrupted by a signal, the connection
...
attempt is terminated, so if a process needs frequent timer interrupts
it can't ever connect() to a machine far away.
Bug found by Erik Lundgren, bugfix (for the same problem) is similar to
the way FreeBSD solved the same problem.
As a side effect, the new connect() behaviour conformes to Posix.
2004-05-18 11:31:49 +00:00
martin
804267781d
Handle STP4020_ISR0_SCINT (status change interrupt posted) - by ignoring
...
it.
2004-05-18 06:20:28 +00:00
thorpej
896bc924e1
Supply rr_1 and wr_1.
2004-05-17 22:00:47 +00:00
thorpej
984caa9835
Fix missing parenthesis in DIAGNOSTIC message.
2004-05-17 20:47:17 +00:00
bouyer
516871a573
Add support for the Ignore Wide Residue SCSI message.
2004-05-17 20:12:34 +00:00
bouyer
1c16a590ec
Regen from esiop.ss 1.18
2004-05-17 18:38:22 +00:00
bouyer
e842696ec7
Regen from siop.ss 1.18
2004-05-17 18:38:02 +00:00
bouyer
83478e12f3
when an unexpected disconnect occurs only compute the resid; do the
...
real save data pointers when we get the message (or rather, at disconnect
time following the message).
Factor out code to do this, and to deal with xs->resid, in siop_common.c.
2004-05-17 18:37:02 +00:00
mhitch
1f358dcd03
Add missing KERNEL_PROC_UNLOCK() in upcallret(). This should fix PR#22219
...
and maybe also PR#23731, which appears to be a duplicate of 22219.
2004-05-17 17:43:08 +00:00
kochi
d8c488d1ef
Fix typo (func8 -> func7)
2004-05-17 16:57:49 +00:00
joda
c80da893ae
the EST and TM2 flags in the second cpuid register were swapped
...
(according AP-485); while here add a few more flags
2004-05-17 15:38:17 +00:00
yamt
92e4dbdd94
#if 0 out CREATE optimization for now because it has a problem in the case
...
of O_CREAT|O_TRUNC, which is hard to be fixed without changing upper layer.
2004-05-17 12:17:18 +00:00
bouyer
a8b77ccfc4
Regen from esiop.ss 1.17.
2004-05-17 11:11:20 +00:00
bouyer
76fa396c1d
Properly compute xs->resid, instead of assuming it'll always be 0 when
...
a command is done.
2004-05-17 11:10:24 +00:00
mrg
2b83a2e912
add EI_NIDENT (16) as seen in other <elf.h> headers.
2004-05-17 02:28:17 +00:00
thorpej
bfd469cd6f
If the PHY has 1000BASE-T capability, check to see if a 1000BASE-T speed
...
was negotiated, and check if we ended up mastering the clock if so.
2004-05-17 00:17:28 +00:00
thorpej
74543d4812
Get flow control negotiation status.
2004-05-16 23:55:58 +00:00
bouyer
7ec21dba35
Make it compile with recent compilers.
2004-05-16 22:45:51 +00:00
skd
a3407cf66b
fix typo in comment: resister -> register.
2004-05-16 21:32:31 +00:00
pk
b0500d6286
Provide a version of FILE_UNUSE() for cases where we already hold the
...
file's lock.
2004-05-16 17:48:18 +00:00
chs
df674b2ca1
for instruction TLB miss traps, process the fault with VM_PROT_EXECUTE
...
instead of VM_PROT_READ (to support non-executable mappings).
2004-05-16 17:07:29 +00:00
chs
f6d0516ba0
in pmap_protect(), don't just return if the desired permissions include write.
...
we could be removing execute permission.
2004-05-16 17:07:07 +00:00
wiz
1249084227
"panicking" needs a k.
2004-05-16 15:44:10 +00:00
yamt
8956861179
curcpu: fix a typo. (cpuinfo -> cpu_info)
...
no functional difference.
2004-05-16 12:32:53 +00:00
wiz
b1ec4ffea9
Fix typo in comment, reported by Alexander Yurchenko grange at rt mipt ru.
2004-05-16 11:42:28 +00:00
kochi
660dc92018
Fix typo in variable name.
2004-05-16 07:14:17 +00:00
thorpej
56906b900a
Patch from HITOSHI Osada:
...
* Add PAUSE-related event counters.
* Return flow control bits in fxp_mii_mediastatus().
2004-05-16 02:59:04 +00:00
thorpej
7e156484d4
Patch from HITOSHI Osada:
...
* Newer chips do not need the receiver lock-up workaround; detect when it
is required.
2004-05-16 02:41:46 +00:00
thorpej
47e9c860d9
Add flow control support, based on work by HITOSHI Osada.
2004-05-16 02:34:47 +00:00
thorpej
f3eaee75cf
Add PAUSE-related event counters for sip(4) and gsip(4), slightly modified
...
from a patch supplied by HITOSHI Osada.
2004-05-15 22:33:13 +00:00
thorpej
ffa382bf7c
Patch from HITOSHI Osada:
...
* On the DP83820, don't set PCR_PS_DA if the PAUSE packet address is
not registered in the multicast filter.
2004-05-15 22:26:49 +00:00