Commit Graph

166740 Commits

Author SHA1 Message Date
yamt 071f43904b constify. 2008-02-07 14:37:40 +00:00
itohy c6575c9320 Whitespace police. 2008-02-07 14:36:40 +00:00
xtraeme b2498de159 Move a debug printf into the ATA_RAID_DEBUG block. 2008-02-07 13:48:33 +00:00
yamt 79c62b78b6 nonresident_rotate: avoid too long loops which can happen on some workloads. 2008-02-07 12:27:38 +00:00
skrll 46fa39e270 Fix a comment. 2008-02-07 12:25:42 +00:00
yamt 7608362b58 swapcluster_flush: handle nused==0, which can happen if swapcluster_add failed.
PR/37669 from Andrew Doran.
2008-02-07 12:24:16 +00:00
yamt cb964fe917 uvm_uarea_init: make #if about PR_NOALIGN clearer and add a comment
to explain it.
2008-02-07 12:21:24 +00:00
ad f23e4dd8ed sonewconn: inherit FNONBLOCK from the parent. 2008-02-07 12:14:43 +00:00
martin 035ac59527 Make it compile w/o INET6 2008-02-07 08:48:16 +00:00
agc 5a37868bfa Define the version of the FUSE ABI we're working with specifically.
Don't hand all the argv options to fuse_main() - it's only interested
in the ones we haven't parsed ourselves.

These changes make the initiator compile and perform discovery successfully
on FreeBSD 6.3. Full login doesn't work yet due to a KSE related bug.
2008-02-07 07:33:37 +00:00
agc 5ca5718e92 Set a definitive FUSE ABI before including fuse.h, to avoid situations
where different operating ssystems default to different levels.
2008-02-07 07:21:15 +00:00
xtraeme 4f2a32a138 Remove neticp (network info commpage) stuff that dyoung added
accidentally to make this build again.
2008-02-07 04:44:21 +00:00
garbled 5532ebb058 Code to disable BAT use on cpu's that either don't have BAT's, or don't
gain any benefit from them.  This nets a small speedup on the POWER3, and
is probably needed for POWER5, which might not emulate BATs like the 3 does.
Also, thanks to Matt Thomas, who suggested re-using alitrap rather than
writing a new dsinobattrap that would have looked remarkably identical
when finished.
2008-02-07 03:20:16 +00:00
dyoung 2ccede0a9c Start patching up the kernel so that a network driver always has
the opportunity to handle an ioctl before generic ifioctl handling
occurs.  This will ease extending the kernel and sharing of code
between drivers.

First steps:  Make the signature of ifioctl_common() match struct
ifinet->if_ioctl.  Convert SIOCSIFCAP and SIOCSIFMTU to the new
ifioctl() regime, throughout the kernel.
2008-02-07 01:21:52 +00:00
matt 809c851d23 Cleanup a few 601 ifdefs. 2008-02-07 01:17:51 +00:00
matt 48751dd9ca narg -> sy_narg 2008-02-07 01:16:21 +00:00
joerg bcdbb8101f Print the complain about random stuff after empty only once. 2008-02-07 00:49:38 +00:00
matt e4dab59acd Cleanup/simplify #if/#endif 2008-02-07 00:36:57 +00:00
matt c385a82b94 Pass 0 to ip_randomid since we don't know the salt. 2008-02-07 00:11:09 +00:00
dyoung f89026db01 Make some RE_* constants aliases for their generic ethernet
counterparts, whose values are the same.
2008-02-06 22:51:02 +00:00
dsl d9a3f57b88 Reorder code so that we don't default-mispredict the 'deferred switch'
branch on (almost) every copy-in/out.
2008-02-06 22:27:09 +00:00
ad 3385774ca4 4.99.53 - struct file, socket changed 2008-02-06 22:13:07 +00:00
dsl c2a8c787c3 Remove the 'args' parameter to 'trace_exit()' it is no longer used.
Instead of passing the (un)real system call code and syscall table pointer,
just pass the number of arguments - which is what ktrace really wants.
Ride forthcoming 4.99.53
2008-02-06 22:12:39 +00:00
dyoung efad92c959 On a tlp@cardbus, don't set the Tx FIFO threshold to "store &
forward" mode, but let the driver automatically adjust.

Cardbus is not actually so slow that it cannot keep up with the
NIC.  It may sometimes have appeared so because we had not enabled
PCI read bursts.   These days, though, we enable read bursts on at
least one TI PCI-Cardbus bridge.
2008-02-06 22:11:54 +00:00
dyoung 5c1733cd95 Assert that 'offset' is divisible by four, since we're using it to
index a PCI configuration register.
2008-02-06 22:06:28 +00:00
dsl a87338a03c Update comment about 'struct reg' and __greg alignment, and clarify
the comment about the syscall/trap entry substituting %r10 for %rcx.
2008-02-06 22:02:17 +00:00
ad d7f6ec471c Don't lock the socket to set/clear FNONBLOCK. Just set it atomically. 2008-02-06 21:57:53 +00:00
ad fb4dec8738 - Shrink 'struct file' to 60 bytes on 32-bit platforms.
- Align 'struct file' and 'struct filedesc' to CACHE_LINE_SIZE.
2008-02-06 21:51:36 +00:00
dsl adc04d4847 Load 'default keycode' into correct byte so that 'boot on timeout' works.
Fixes PR/37960.
While here save another byte.
2008-02-06 21:17:55 +00:00
drochner 214b89d525 The tricks done in device_foreach_child() still don't make it safe to use
by config_detach_children(), because the latter can work recursively
and remove any number of devices, so rewrite config_detach_children()
to restart list traversal after each call of config_detach(), and since
only one user of device_foreach_child() is left (in kern_drvctl.c),
and it is simpler to open-code the loop than to deal with callbacks,
just remove it.
2008-02-06 20:24:17 +00:00
joerg 54735ec484 Merge commit 8c0dad4904474016c373573414c8e16ba51e88ad from upstream:
Fixed EAPOL not to end up in infinite loop with dynamic WEP keys
2008-02-06 18:30:47 +00:00
joerg c8bc46c4bc Warn for constructs like
.if empty xxx(foo)
which are interpreted as
.if empty(foo)
or
.if empty (foo)

This is based on rillig's commit to pkgsrc/devel/bmake, but doesn't warn
for the third case. Discussed with sjg.
2008-02-06 18:26:37 +00:00
garbled ffe28a7fd5 Forgot to add PPC_OEA601 here 2008-02-06 17:26:04 +00:00
joerg 577c689497 Don't use misaligned PCI config access. Reported by Christoph Egger. 2008-02-06 16:50:38 +00:00
yamt caca6daa1a softint_dispatch: fix softint_timing. 2008-02-06 15:34:36 +00:00
yamt b895a23e56 fix a typo(?) in rev.1.34, which causes NULL dereferences. 2008-02-06 15:31:42 +00:00
elad 08a754e331 It's KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_*.
Noted by dogcow@, thanks!
2008-02-06 12:13:47 +00:00
elad 6f361f7379 - There is no XYCMD_WRP -- forgot to remove it along with the XYCMD_RDP :)
- Add missing '}'

Noted by dogcow@, thanks!
2008-02-06 12:08:34 +00:00
jmmv 5a8838cb59 u_int is not a C99 standard type, so spell it out completely as
unsigned int.
2008-02-06 11:23:53 +00:00
jmmv 565f731b68 Drop trailing whitespace. 2008-02-06 11:22:12 +00:00
bjs 5fb9f423de ip_newid() -> ip_newid(NULL) due to Matt Thomas' commit some hours ago;
The function now requires a pointer (to struct in_ifaddr) as an argument,
i.e. it is no longer ip_newid(void).

Fixes ipsec+inet6 kernel builds.
2008-02-06 07:42:43 +00:00
matt fb71901dbc Add a new ip_id generation scheme based on a Fisher-Yates shuffle over a
sliding window.  XXX replace use of arc4random RSN.
2008-02-06 03:20:50 +00:00
garbled ab2c4dad31 Some minor cleanup in the PPC_OEA601 code, and a fix for bridge-mode
cpus, which apparently still need the non-601 code to zap various
instructions into nops.
2008-02-06 03:15:06 +00:00
jnemeth b4d97d9373 - prepare for 5.0
- eliminate stuff specific to 4.0
- fix hp700 addition (/brick nick)
- lint
2008-02-06 01:57:31 +00:00
macallan f9556e751b get rid of some leftover debugging cruft 2008-02-06 01:33:38 +00:00
garbled 81953d91fb Ifdef out all the MPC601 code with PPC_OEA601. Now only arches that have the
possibility of running on an MPC601, are infected with all the extra code
and nops that it added.

Also, fix compilation that I broke with the pmap code, by adding
oeacpufeat to the locores of various ppc arches.  Noted by mlelstv.
2008-02-05 22:31:48 +00:00
mlelstv 54cb18b2a9 fix and cleanup debug printf formats 2008-02-05 22:15:30 +00:00
macallan b86243ded7 update (c) sections 2008-02-05 21:42:16 +00:00
macallan c5904c1083 add hardware acceleration for scrolling and clearing.
The framebuffer is now run in tiled mode so we can use the rendering engine
which means X is broken for now.
This needs more testing.
2008-02-05 21:39:25 +00:00
garbled 7c9d238473 Yank the bridge64 kernel 2008-02-05 19:09:02 +00:00