openbsd
16 years agosync
deraadt [Tue, 29 Jul 2008 22:10:18 +0000 (22:10 +0000)]
sync

16 years ago- add man pages for nan and remainder, from freebsd
martynas [Tue, 29 Jul 2008 22:08:43 +0000 (22:08 +0000)]
- add man pages for nan and remainder, from freebsd
- mlink drem, dremf, remainderf to remainder;  nanf to nan
- describe that drem and dremf are obsolete aliases
- remove descriptions for remainder and remainderf from ieee
looked over by jmc@, but it's easier for him to work on when they
are in tree

16 years agosync
deraadt [Tue, 29 Jul 2008 22:04:38 +0000 (22:04 +0000)]
sync

16 years agodescribe exp2, exp2f and mlink them
martynas [Tue, 29 Jul 2008 21:57:13 +0000 (21:57 +0000)]
describe exp2, exp2f and mlink them

16 years agowhen detaching pcbs, also free the v6 output options so that we do not
deraadt [Tue, 29 Jul 2008 21:46:27 +0000 (21:46 +0000)]
when detaching pcbs, also free the v6 output options so that we do not
leak kernel memory for every closed v6 descriptor with certain options set
ok otto jsing todd claudio

16 years agoIn ahc_free(), which is invoked if attachment fails, do not free()
miod [Tue, 29 Jul 2008 21:18:53 +0000 (21:18 +0000)]
In ahc_free(), which is invoked if attachment fails, do not free()
pointers we don't own, but the autoconf machinery does.

16 years agosync
deraadt [Tue, 29 Jul 2008 20:19:36 +0000 (20:19 +0000)]
sync

16 years agoclarify EMSGSIZE
gilles [Tue, 29 Jul 2008 20:15:53 +0000 (20:15 +0000)]
clarify EMSGSIZE

rewording by jmc@, "lovely" deraadt@

16 years agotweak previous;
jmc [Tue, 29 Jul 2008 20:11:45 +0000 (20:11 +0000)]
tweak previous;

16 years agoAdd an ugly hack to disable DMA on the Tadpole SPARCLE laptop. It doesn't
kettenis [Tue, 29 Jul 2008 20:09:11 +0000 (20:09 +0000)]
Add an ugly hack to disable DMA on the Tadpole SPARCLE laptop.  It doesn't
work and this way we fall back on PIO which does work.  I'm pretty sure
this is caused by bugs in our code, but I cannot find them.

ok deraadt@, marco@

16 years agoSwitch all instances of malloc/free in the DRM to drm_alloc, drm_free
oga [Tue, 29 Jul 2008 19:44:13 +0000 (19:44 +0000)]
Switch all instances of malloc/free in the DRM to drm_alloc, drm_free
and drm_calloc.

With the recent change to check overflow in drm_calloc, this means that
all allocations that require multiplication are now checked. Also use
drm_calloc() when zeroing is needed and drop the bzero/memset
afterwards.  Finally, make drm_free() check for NULL, so we don't need
to do so every time.

ok miod@, deraadt@

16 years agoSplit SHA1Transform() back into smaller pieces when compiling on landisk,
miod [Tue, 29 Jul 2008 19:32:50 +0000 (19:32 +0000)]
Split SHA1Transform() back into smaller pieces when compiling on landisk,
to defeat gcc optimization bugs. Similar to what had been done on sparc64
in the past.
ok millert@ deraadt@

16 years agoStricter bounds checking for values controlling loops or memory allocations,
miod [Tue, 29 Jul 2008 19:13:56 +0000 (19:13 +0000)]
Stricter bounds checking for values controlling loops or memory allocations,
which may come from userland via ioctls. ok oga@

16 years agoCheck for multiplication overflow in drm_calloc(). ok oga@
miod [Tue, 29 Jul 2008 19:13:19 +0000 (19:13 +0000)]
Check for multiplication overflow in drm_calloc(). ok oga@

16 years agosync
deraadt [Tue, 29 Jul 2008 18:43:28 +0000 (18:43 +0000)]
sync

16 years agoGive the eisa device a valid bus_dma_tag_t.
miod [Tue, 29 Jul 2008 18:40:23 +0000 (18:40 +0000)]
Give the eisa device a valid bus_dma_tag_t.

16 years agoFix range check in sio_intr_establish().
miod [Tue, 29 Jul 2008 18:39:45 +0000 (18:39 +0000)]
Fix range check in sio_intr_establish().

16 years agoremove finite from ieee.3, and unmlink from makefile
martynas [Tue, 29 Jul 2008 18:38:21 +0000 (18:38 +0000)]
remove finite from ieee.3, and unmlink from makefile

16 years agoremove
martynas [Tue, 29 Jul 2008 18:25:51 +0000 (18:25 +0000)]
remove

16 years agoan enum specifier is more elegant than a set of #defines;
sobrado [Tue, 29 Jul 2008 18:25:28 +0000 (18:25 +0000)]
an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok millert@, pyr@

16 years agomd5(1), sha1(1), rmd160(1), cksum(1) and sum(1) have different options;
sobrado [Tue, 29 Jul 2008 18:24:31 +0000 (18:24 +0000)]
md5(1), sha1(1), rmd160(1), cksum(1) and sum(1) have different options;
while here, some KNF improvements.

based on a diff for compress(1) written by millert@,
fixes from guenther@ and pyr@.

ok millert@, pyr@; (for the manual page tweaks) jmc@

16 years agos/affect/assign/ in wmm option.
damien [Tue, 29 Jul 2008 18:20:02 +0000 (18:20 +0000)]
s/affect/assign/ in wmm option.

16 years ago- man pages for fpclassify, isfinite, isinf, isnan, isnormal, signbit,
martynas [Tue, 29 Jul 2008 18:19:17 +0000 (18:19 +0000)]
- man pages for fpclassify, isfinite, isinf, isnan, isnormal, signbit,
mostly from freebsd
- also describe deprecated aliases for isinff, isnanf, finite,
finitef
- describe behavior on vax
- add mlinks for finite, finitef, isfinite, isinf, isinff, isnan,
isnanf, isnormal, signbit
- add man pages for isgreater, isgreaterequal, isless, islessequal,
islessgreater, isunordered;  from freebsd
looked over by jmc@, it's better for him to work on when they are in tree

16 years agotweak the wep section somewhat, to bring it into line with what
jmc [Tue, 29 Jul 2008 17:03:35 +0000 (17:03 +0000)]
tweak the wep section somewhat, to bring it into line with what
we say for those devices which support wpa;

16 years ago- beef up the text on wep/wpa
jmc [Tue, 29 Jul 2008 16:44:19 +0000 (16:44 +0000)]
- beef up the text on wep/wpa
- simplify wpa example

help/ok damien

16 years agodisable these targets since this will not be fixed until post-release
deraadt [Tue, 29 Jul 2008 15:40:36 +0000 (15:40 +0000)]
disable these targets since this will not be fixed until post-release

16 years agoThere is currently no CD-ROM install available for OpenBSD/sgi.
jsing [Tue, 29 Jul 2008 15:06:51 +0000 (15:06 +0000)]
There is currently no CD-ROM install available for OpenBSD/sgi.

ok deraadt@

16 years agoexample code fix from Will Maier; ok otto
jmc [Tue, 29 Jul 2008 13:53:14 +0000 (13:53 +0000)]
example code fix from Will Maier; ok otto

16 years agoThe stream header length and flags field are uint8_t not int.
mglocker [Tue, 29 Jul 2008 13:45:04 +0000 (13:45 +0000)]
The stream header length and flags field are uint8_t not int.

16 years agocheck for m_devget() returning NULL, increment ierror count
thib [Tue, 29 Jul 2008 10:05:38 +0000 (10:05 +0000)]
check for m_devget() returning NULL, increment ierror count
and just return;

OK mglocker@

16 years agoadd description for the modem which has multiple com ports.
yuo [Tue, 29 Jul 2008 06:51:54 +0000 (06:51 +0000)]
add description for the modem which has multiple com ports.

checked and ok jsg@

16 years agoWhen paused (or overrun), the record ring pointers are not incremented
ratchov [Tue, 29 Jul 2008 05:59:11 +0000 (05:59 +0000)]
When paused (or overrun), the record ring pointers are not incremented
properly in audio_rint(), the periodic boundary conditions aren't met. This
causes, later read(2) to return EFAULT while trying to access unmapped
regions of the kernel address space. Fix this by using the correct pointer
arithmetic.

ok jakemsr@

16 years agoReenable the AUXWRITE dance to try and find the aux port in pckbc(4), based
miod [Tue, 29 Jul 2008 04:20:35 +0000 (04:20 +0000)]
Reenable the AUXWRITE dance to try and find the aux port in pckbc(4), based
on an attachment dependent flag; the Tadople SPARCLE needs it.
ok kettenis@ deraadt@

16 years agoAdd rebuild mark so that we can restart a rebuild upon clean shutdown.
marco [Tue, 29 Jul 2008 01:18:02 +0000 (01:18 +0000)]
Add rebuild mark so that we can restart a rebuild upon clean shutdown.
Fix a typo while here.

The rebuild field was appended to the metadata so that we can automatically
update from v2 to v3.  The only visible difference will be that in the dmesg
the SCSI version number will go from 002 to 003.

ok deraad.

16 years ago- fix FIFO overruns on PCI-E chipsets by setting the DMA size
reyk [Tue, 29 Jul 2008 00:18:25 +0000 (00:18 +0000)]
- fix FIFO overruns on PCI-E chipsets by setting the DMA size
RX/TX configuration registers to 128 instead of 512 bytes.
- add a few more MAC/RF id strings for the dmesg.
- check for PCI-E instead of single chip variants in a few places.

ok deraadt@

16 years agosync
deraadt [Tue, 29 Jul 2008 00:12:18 +0000 (00:12 +0000)]
sync

16 years agoInstall man pages for the BIO_* libcrypto functions, but not bio.3
jsg [Mon, 28 Jul 2008 23:44:10 +0000 (23:44 +0000)]
Install man pages for the BIO_* libcrypto functions, but not bio.3
as the page doesn't directly describe any functions.

ok deraadt@

16 years agoOnly optimize away plt relocation when obj_base == 0. Corrects
kurt [Mon, 28 Jul 2008 22:11:00 +0000 (22:11 +0000)]
Only optimize away plt relocation when obj_base == 0. Corrects
pie relocation. Assembly debugging help from kettenis@.

okay kettenis@ miod@

16 years agozap some extra spaces and tabs.
fgsch [Mon, 28 Jul 2008 20:58:41 +0000 (20:58 +0000)]
zap some extra spaces and tabs.

16 years agoWhen getting the string descriptors, fetch 2 bytes (size and type) first,
fgsch [Mon, 28 Jul 2008 20:49:28 +0000 (20:49 +0000)]
When getting the string descriptors, fetch 2 bytes (size and type) first,
and then the whole string based on the returned size, not just one byte.
The Lexar card reader kindly loaned by
Denis Doroshenko (denis dot doroshenko at gmail.com) it's happy now, and
after further inspection it's what other OSs do.
Discussed with yuo@. krw@ yuo@ ok.

16 years agosome SEE ALSO fixes;
jmc [Mon, 28 Jul 2008 20:19:32 +0000 (20:19 +0000)]
some SEE ALSO fixes;

16 years agodocument WPA-PSK support.
damien [Mon, 28 Jul 2008 20:10:28 +0000 (20:10 +0000)]
document WPA-PSK support.

"i would really appreciate just something going in" jmc@

16 years agoman page bits for new malloc; ok jmc@
otto [Mon, 28 Jul 2008 19:53:03 +0000 (19:53 +0000)]
man page bits for new malloc; ok jmc@

16 years agomention newer versions.
brad [Mon, 28 Jul 2008 19:52:21 +0000 (19:52 +0000)]
mention newer versions.

16 years agoignore PS mode changes and PS-Poll from non-associated STAs.
damien [Mon, 28 Jul 2008 19:42:13 +0000 (19:42 +0000)]
ignore PS mode changes and PS-Poll from non-associated STAs.
keep track of the number of associated STAs in PS mode.

16 years agoAlign the route message length to the next natural boundary via ALIGN() to
claudio [Mon, 28 Jul 2008 19:38:07 +0000 (19:38 +0000)]
Align the route message length to the next natural boundary via ALIGN() to
ensure that the next message is nicely aligned as well. Some archs (sparc, m88k)have strict alignement issues since the inclusion of 64bit counters in the
messages because those values could end up on non aligned addresses.
Found and fix tested by miod@, OK deraadt@

16 years agoNo longer clear ci_want_resched within cpu_switchto(), now that it's done
miod [Mon, 28 Jul 2008 19:08:43 +0000 (19:08 +0000)]
No longer clear ci_want_resched within cpu_switchto(), now that it's done
in the MI code.

16 years agoregen
miod [Mon, 28 Jul 2008 18:51:11 +0000 (18:51 +0000)]
regen

16 years agoPut XBOW in the generated constants, not PCI...
miod [Mon, 28 Jul 2008 18:50:59 +0000 (18:50 +0000)]
Put XBOW in the generated constants, not PCI...

16 years agoIn addition to cop0 sr, prevent cop0 ic from being modified in
miod [Mon, 28 Jul 2008 18:48:25 +0000 (18:48 +0000)]
In addition to cop0 sr, prevent cop0 ic from being modified in
process_write_regs().

16 years agoUpdate to tzcode2008e from elsie.nci.nih.gov
millert [Mon, 28 Jul 2008 18:22:24 +0000 (18:22 +0000)]
Update to tzcode2008e from elsie.nci.nih.gov

16 years agoUpdate to tzdata2008e from elsie.nci.nih.gov
millert [Mon, 28 Jul 2008 18:19:57 +0000 (18:19 +0000)]
Update to tzdata2008e from elsie.nci.nih.gov

16 years agosync
deraadt [Mon, 28 Jul 2008 17:57:49 +0000 (17:57 +0000)]
sync

16 years agoRemove dead code.
miod [Mon, 28 Jul 2008 17:57:25 +0000 (17:57 +0000)]
Remove dead code.

16 years agoIn process_write_regs() and sigreturn(), be more strict about the bits
miod [Mon, 28 Jul 2008 17:50:09 +0000 (17:50 +0000)]
In process_write_regs() and sigreturn(), be more strict about the bits
userland is allowed to change in psr.

16 years agoAccording to the manual, delay slot kill the benefits of being superscalar,
miod [Mon, 28 Jul 2008 17:49:38 +0000 (17:49 +0000)]
According to the manual, delay slot kill the benefits of being superscalar,
so don't use any in the 88110-specific parts of locore.

16 years agosync
reyk [Mon, 28 Jul 2008 16:56:05 +0000 (16:56 +0000)]
sync

16 years agorevert AR5416 PCIE to AR5418, the product description is clear about
reyk [Mon, 28 Jul 2008 16:53:18 +0000 (16:53 +0000)]
revert AR5416 PCIE to AR5418, the product description is clear about
it while atheros' driver says something wrong (even if it is
technically correct).  also rename AR9280 PCIE to AR9281 (guessed).

triggered by kettenis@

16 years agodocument which functions use which YP maps; Ingo Schwarze
deraadt [Mon, 28 Jul 2008 16:27:39 +0000 (16:27 +0000)]
document which functions use which YP maps; Ingo Schwarze

16 years agosome cleanup; Gleydson Soares
deraadt [Mon, 28 Jul 2008 16:22:11 +0000 (16:22 +0000)]
some cleanup; Gleydson Soares

16 years agoregen
kettenis [Mon, 28 Jul 2008 16:04:26 +0000 (16:04 +0000)]
regen

16 years agoName PLX PEX devices a bit more consistently, and keep them sorted in
kettenis [Mon, 28 Jul 2008 16:03:48 +0000 (16:03 +0000)]
Name PLX PEX devices a bit more consistently, and keep them sorted in
numerical order.

16 years agoDo not use __progname in inetd as it is not portable. Instead hardcode it to
claudio [Mon, 28 Jul 2008 15:42:07 +0000 (15:42 +0000)]
Do not use __progname in inetd as it is not portable. Instead hardcode it to
"inetd" in the few locations that print out the program name.
requested and OK deraadt@

16 years agoremove an #if noyet block that will never be needed.
thib [Mon, 28 Jul 2008 14:21:17 +0000 (14:21 +0000)]
remove an #if noyet block that will never be needed.
softupdates are reported too statfs via the mount point flags
or the mount_info part of statfs;

ok pedro@

16 years agoRemove separate pic versions of crt0, crtbegin, crtend. Next
kurt [Mon, 28 Jul 2008 14:17:00 +0000 (14:17 +0000)]
Remove separate pic versions of crt0, crtbegin, crtend. Next
release we are taking a different approach. Idea from kettenis@.

okay kettenis@ weingart@

16 years agoregen
jsg [Mon, 28 Jul 2008 14:16:19 +0000 (14:16 +0000)]
regen

16 years agoAdd devices from submitted dmesgs and some VX800 bits.
jsg [Mon, 28 Jul 2008 14:15:18 +0000 (14:15 +0000)]
Add devices from submitted dmesgs and some VX800 bits.

16 years agodont stuff nfs mount point flags into the statfs f_flags member, its
thib [Mon, 28 Jul 2008 13:35:14 +0000 (13:35 +0000)]
dont stuff nfs mount point flags into the statfs f_flags member, its
wrong. But this was harmless anyway since sys_statfs() sets this field
corrently after calling VFS_STATFS();

ok pedro@, blambert@

16 years agoFix the tracking of RTF_MPATH. Until now the magic happend on the first route
claudio [Mon, 28 Jul 2008 13:25:10 +0000 (13:25 +0000)]
Fix the tracking of RTF_MPATH. Until now the magic happend on the first route
and not on the routes with the right prio. So pick up the correct route by
calling rn_mpath_prio() first.
OK henning@

16 years agoadd another 3G modems support to umsm(4).
yuo [Mon, 28 Jul 2008 10:42:12 +0000 (10:42 +0000)]
add another 3G modems support to umsm(4).
 - Option GlobeSuffer ICON7.2
 - Option GlobeTrotter HSDPA ICON 225

These modems require special request to change its mode to modem.
It is similar with huawei E220, but these modems using UMASS
standard query to change mode.

tested by pyr@ and ajacoutot@
ok jsg@ and pyr@

16 years agomissing "goto err".
damien [Mon, 28 Jul 2008 10:38:05 +0000 (10:38 +0000)]
missing "goto err".
fix IEEE80211_DEBUG builds.

16 years agosync
reyk [Mon, 28 Jul 2008 10:02:32 +0000 (10:02 +0000)]
sync

16 years agonew atheros PCI Ids for the ar9k chipsets, change AR5418 to be AR5416 PCIE.
reyk [Mon, 28 Jul 2008 09:58:24 +0000 (09:58 +0000)]
new atheros PCI Ids for the ar9k chipsets, change AR5418 to be AR5416 PCIE.

16 years agoreinstate a comment whacked in -r1.138; ok deraadt
jmc [Mon, 28 Jul 2008 08:29:50 +0000 (08:29 +0000)]
reinstate a comment whacked in -r1.138; ok deraadt

16 years agoFix integer truncation in ttwrite(). ok deraadt, miod.
stefan [Mon, 28 Jul 2008 06:13:22 +0000 (06:13 +0000)]
Fix integer truncation in ttwrite(). ok deraadt, miod.

16 years agoAlmost complete rewrite of malloc, to have a more efficient data
otto [Mon, 28 Jul 2008 04:56:38 +0000 (04:56 +0000)]
Almost complete rewrite of malloc, to have a more efficient data
structure of tracking pages returned by mmap(). Lots of testing by
lots of people, thanks to you all.
ok djm@ (for a slighly earlier version) deraadt@

16 years agosync
deraadt [Mon, 28 Jul 2008 01:54:50 +0000 (01:54 +0000)]
sync

16 years ago3 plx devices found on Sun T2 systems
deraadt [Mon, 28 Jul 2008 01:54:46 +0000 (01:54 +0000)]
3 plx devices found on Sun T2 systems

16 years agodocument COMPAT_O43; requested by Oleg Safiullin
jmc [Sun, 27 Jul 2008 21:14:31 +0000 (21:14 +0000)]
document COMPAT_O43; requested by Oleg Safiullin
text from otto

16 years agoIncrease the size of the TSB on large memory machines. This make building
kettenis [Sun, 27 Jul 2008 20:33:23 +0000 (20:33 +0000)]
Increase the size of the TSB on large memory machines.  This make building
a kernel 10-15% faster on the t1k.  Don't do this for SMALL_KERNEL though,
otherwise the 4MB locked mapping for the data segment will be too small to
include a ramdisk.

16 years agosanitize RX path a bit.
damien [Sun, 27 Jul 2008 18:24:01 +0000 (18:24 +0000)]
sanitize RX path a bit.
make sure drivers pass a contiguous header, check header length earlier.
fix checking of frames sequence number for frames containing an Address 4
field (required for future work).
fix processing of control frames (only pspoll for now).

16 years ago+I-O DATA WN-G54/CF to the malo(4) list;
jmc [Sun, 27 Jul 2008 16:36:09 +0000 (16:36 +0000)]
+I-O DATA WN-G54/CF to the malo(4) list;

16 years agos/IEEE80211_DPRINTF/DPRINTF/
damien [Sun, 27 Jul 2008 14:21:15 +0000 (14:21 +0000)]
s/IEEE80211_DPRINTF/DPRINTF/
automatically prepend __func__ to output.

deobfuscates debug messages a bit.
no binary change unless compiled with IEEE80211_DEBUG.

16 years agoremove unused structures and duplicated definitions.
damien [Sun, 27 Jul 2008 14:15:42 +0000 (14:15 +0000)]
remove unused structures and duplicated definitions.
remove clause 3 of license while I'm here (from FreeBSD).

16 years agoan enum specifier is more elegant than a set of #defines;
sobrado [Sun, 27 Jul 2008 13:15:31 +0000 (13:15 +0000)]
an enum specifier is more elegant than a set of #defines;
storing the program mode variable (pmode) as a global let us have
a more consistent prototype for usage().

changes suggested by pyr@.

ok pyr@

16 years agoSome devices take longer to load the firmware. Increase the firmware
mglocker [Sun, 27 Jul 2008 13:02:37 +0000 (13:02 +0000)]
Some devices take longer to load the firmware.  Increase the firmware
load timeout from 50000us to 500000us.

Reported and tested by William Dunand with an I-O DATA WN-G54/CF device.
Since this device works now, we add it to the man page.

16 years agofix a typo in a comment.
mbalmer [Sun, 27 Jul 2008 11:28:17 +0000 (11:28 +0000)]
fix a typo in a comment.

ok mglocker

16 years agobad comma;
jmc [Sun, 27 Jul 2008 10:24:27 +0000 (10:24 +0000)]
bad comma;

16 years agoUse __progname instead of hand rolled version using argv[0].
claudio [Sun, 27 Jul 2008 10:06:10 +0000 (10:06 +0000)]
Use __progname instead of hand rolled version using argv[0].
Diff from Gleydson Soares gsoares at gmail dot com
OK millert@

16 years agoGet TAILQ_REPLACE and CIRCLEQ_REPLACE prototypes right.
stefan [Sun, 27 Jul 2008 07:06:42 +0000 (07:06 +0000)]
Get TAILQ_REPLACE and CIRCLEQ_REPLACE prototypes right.
ok jaredy

16 years agoRecognize an explicit + sign in exponent of hex float constants, needed to
miod [Sat, 26 Jul 2008 19:46:56 +0000 (19:46 +0000)]
Recognize an explicit + sign in exponent of hex float constants, needed to
compile current libm. ok martynas@

16 years agoSilence scsi_inquire_vpd() so devices that don't understand the necessary
krw [Sat, 26 Jul 2008 18:55:31 +0000 (18:55 +0000)]
Silence scsi_inquire_vpd() so devices that don't understand the necessary
INQUIRY options don't spam dmesg during probe. Seen by miod@ and kettenis@
for SCSI CD's.

ok miod@

16 years agoAdd M$ NX-6000 cam, ok mglocker@
ian [Sat, 26 Jul 2008 16:20:17 +0000 (16:20 +0000)]
Add M$ NX-6000 cam, ok mglocker@

16 years agoshrink ieee80211_set_link_state().
damien [Sat, 26 Jul 2008 12:56:06 +0000 (12:56 +0000)]
shrink ieee80211_set_link_state().

16 years agoremove useless #includes.
damien [Sat, 26 Jul 2008 12:42:57 +0000 (12:42 +0000)]
remove useless #includes.

16 years agoproperly handle management frames (required for future work).
damien [Sat, 26 Jul 2008 12:41:34 +0000 (12:41 +0000)]
properly handle management frames (required for future work).
remove useless #includes.

16 years agocall Phase1 every 2**16 frames instead of calling it for every frame.
damien [Sat, 26 Jul 2008 12:36:15 +0000 (12:36 +0000)]
call Phase1 every 2**16 frames instead of calling it for every frame.
properly handle frames with an address 4 field (required for future work).
remove useless #includes.

16 years agoSince we are able to change the device image resolution on the fly in the
mglocker [Sat, 26 Jul 2008 11:42:43 +0000 (11:42 +0000)]
Since we are able to change the device image resolution on the fly in the
meantime, the memory allocation for the read(2) method for video(4)
is not right anymore, and can cause a buffer overflow.

We fix this by queuering the maximum available image size for a device at
attach time.  If the image size should exceed our video(4) buffer after a
video format change (which shouldn't happen), uvideo(4) will gracefully
fail.

Also tested by kettenis@

16 years agonote that fetch hooks are a real bad idea
espie [Sat, 26 Jul 2008 11:31:03 +0000 (11:31 +0000)]
note that fetch hooks are a real bad idea

16 years agodocument update-or-install
espie [Sat, 26 Jul 2008 11:05:32 +0000 (11:05 +0000)]
document update-or-install