Commit Graph

73173 Commits

Author SHA1 Message Date
mycroft
a7aa9498f3 Minor rearrangement. Whitespace and #include cleanup. 2004-09-18 00:21:03 +00:00
mycroft
8f93b96f00 Standardize some variable names and the calling pattern for scsipi_command().
Use void pointer casts.
2004-09-18 00:08:16 +00:00
itohy
829103b30f Make it work again.
Hi, drochner!
2004-09-17 23:59:33 +00:00
mycroft
1e243afe67 Remove the "xfer" argument to scsipi_command(). 2004-09-17 23:43:17 +00:00
mycroft
cdc20e6ce8 In places where we've already called scsipi_make_xs(), call scsipi_execute_xs()
directly rather than going through scsipi_command().
2004-09-17 23:35:13 +00:00
enami
006eb65868 s,contro,&l, in a comment. 2004-09-17 23:32:09 +00:00
mycroft
ba781da1dc Change the way bustype_cmd is used. Rather than having it be responsible for
calling scsipi_make_xs() and scsipi_execute_xs(), instead push these into
scsipi_command.  Make bustype_cmd and PHOLD/PRELE be called from
scsipi_execute_xs().  This allows us to create a xfer structure -- possibly on
the stack -- and call scsipi_execute_xs() directly.
2004-09-17 23:30:22 +00:00
enami
53d0cedc9f Put the type of p_tracep back to void *; it is an implementation detail and
no need to expose to the rest of kernel.
2004-09-17 23:26:42 +00:00
enami
23114636eb Delete m_tag from a mbuf being non-pkthdr mbuf rather than newly becoming
pkthdr mbuf.
2004-09-17 23:24:03 +00:00
enami
6d7958ac59 Minimal support for mirror component. The relation between original and
mirror component learned from FreeBSD driver.
2004-09-17 23:21:53 +00:00
enami
a3eb2d5952 - proc_alloc() already initializes p_stat to SIDL.
- copy unconditionaly inherited p_flag bits in a single place.
2004-09-17 23:20:21 +00:00
mycroft
bd9548b268 Oops; fix ssrestart(). 2004-09-17 23:13:02 +00:00
mycroft
8b6c2af171 Do not manipulate xs->bp in "generic" code -- do it only in the psw_done
routine.  As part of this, pass down our pre-parsed error code -- though this
interface will probably change later to accomodate better error handling.
2004-09-17 23:10:50 +00:00
enami
45bae472de Whitespace nit. 2004-09-17 23:04:02 +00:00
enami
41122731c8 Redo part of rev. 1.10. 2004-09-17 21:54:28 +00:00
yamt
9555030270 make free page queue filo rather than fifo.
data in pages freed more recently are more likely on cpu cache.
2004-09-17 20:46:03 +00:00
jdolecek
9acf283bdf vinum_super_ioctl(): refuse unknown ioctls, rather than pretending
success; this fixes panic caused by null pointer dereference in
spec_open() after DIOCGPART ioctl call and PR bin/26981 by Simon Hitzemann

while here, also remove not reachable return statements, and also
return EINVAL for ioctl to unknown DEVTYPE()s

XXX vinum code is !@#$%^
2004-09-17 19:21:03 +00:00
itojun
0f8f9a1f56 deal with PCMCIA_TPCE_IO_RANGE_ADDRSIZE_NONE and
PCMCIA_TPCE_IO_RANGE_LENGTHSIZE_NONE properly.  enami
solves kern/26726.
2004-09-17 18:42:41 +00:00
xtraeme
37db99c68f Regen for GeForce FX 5700 LE. 2004-09-17 18:05:27 +00:00
xtraeme
0c35004c2f Add GeForceFX 5700 LE and regen. 2004-09-17 16:04:17 +00:00
skrll
f7155e40f6 There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9).

OK'd by Jason Thorpe
2004-09-17 14:11:20 +00:00
yamt
4c7a64e02d make this compile with OHCI_DEBUG without EHCI_DEBUG. 2004-09-17 10:55:07 +00:00
bouyer
cdc0918196 In case of error, reset the channel with AT_RST_NOCMD. We know the reset
won't abort any command at this point.
2004-09-16 20:52:43 +00:00
drochner
ea827e5146 forgot one ISACF_*_DEFAULT conversion, noticed by Nick Hudson 2004-09-16 16:08:27 +00:00
ragge
405ff27fa4 Regen. 2004-09-16 13:09:59 +00:00
ragge
b592635459 Add S2io 10 Gigabit ethernet adapter. 2004-09-16 13:08:51 +00:00
martin
657b6abe1d Do not count ipackets twice. From Dave Barnes in PR port-i386/26906. 2004-09-16 10:02:59 +00:00
he
e1ca5516de Remove reference to now-deleted aoutm68k_ioctl.c. 2004-09-16 09:35:38 +00:00
rumble
b1a9752c01 Correct a few comment typos that have propagated through the
tree.
2004-09-16 03:57:10 +00:00
thorpej
64c6842169 The pss driver has a comment at the top saying that it won't
even compile, so don't bother trying.
2004-09-15 15:54:23 +00:00
drochner
5f7699c047 oops, another typo, should fix report by taya 2004-09-15 15:49:10 +00:00
yamt
6f3db818ea ufs_getlbns:
- fix an integer overflow when calculating lbns of indirect blocks.
- remove a redundant calculation of blockcnt.
2004-09-15 09:52:49 +00:00
yamt
e11d5e7c46 fix access-after-free bugs in dircache code by refcounting nfsdircache.
PR/26864.
2004-09-15 09:50:56 +00:00
yamt
0ea22c32fa fix ipqent pool corruption problems. make tcp reass code use
its own pool of ipqent rather than sharing it with ip reass code.
PR/24782.
2004-09-15 09:21:22 +00:00
drochner
f3872a35ff actually pass the locators,
should fix panic reported by Shin'ichiro TAYA
2004-09-15 09:10:42 +00:00
drochner
0e76692948 fix a botched function header,
should fix build problem reported by Tom Javen
2004-09-15 09:01:53 +00:00
scw
17d7b87515 It helps to call fpu_sqrt() when dealing with the frsqrte instruction. 2004-09-15 07:04:21 +00:00
tls
95c72fc3de Add 50Hz support -- this will allow 'options NTP' to work on the Xen port,
once the Xen port's timer interrupts are made somewhat more sane (it "works"
now, but keeps worse time than without the option, ouch)
2004-09-15 04:56:14 +00:00
tls
74ec9a5fcc Actually mix samples into the kernel RNG pool. There's a buglet here: all
disk samples are reported as belonging to the first disk.
2004-09-15 04:55:21 +00:00
thorpej
483ec9af85 Remove the COMPAT_AOUT LKM build infrastructure. The code is gone,
now.
2004-09-14 22:12:06 +00:00
drochner
2db688402b adapt to ISA "unknown address" namespace separation (purely mechanical,
as far as "grep" reaches)
2004-09-14 20:32:48 +00:00
drochner
1134c44162 adapt to ISA "unknown address" namespace separation 2004-09-14 20:25:05 +00:00
drochner
1308c6d767 Separate the namespace for default (ie unspecified) locators used
by the isa.c bus driver and the "address/whatever not specified"
argument passed to leaf device drivers.
The former is "ISACF_XXX_DEFAULT" as generaterd by config(8), the latter
"ISA_UNKNOWN_XXX", defined in isavar.h.
This way we save a dependency of every ISA device driver on "locators.h".
2004-09-14 20:20:46 +00:00
drochner
61ac7027b3 include "locators.h" explicitely (don't rely on isavar.h doing so) 2004-09-14 19:57:37 +00:00
drochner
a91f239c72 fix botch in config_found conversion, found by Stefan Krueger 2004-09-14 18:57:35 +00:00
jdolecek
52c9439e95 regen:
remove all alternative path check code, and (empty) ioctl wrapper
2004-09-14 17:40:59 +00:00
jdolecek
c2e4e13382 remove all alternative path check code, and (empty) ioctl wrapper 2004-09-14 17:39:18 +00:00
drochner
edb77e2a6d include "locators.h" explicitely where it is needed, so that
it can be removed in the isavar.h header eventually
2004-09-14 17:38:30 +00:00
jdolecek
e6e73849a5 g/c rest of COMPAT_AOUT support 2004-09-14 17:25:37 +00:00
jdolecek
023551ef44 gc opt_compat_aout.h include 2004-09-14 17:20:29 +00:00
drochner
863cb326e8 replace 7 identical instances if cfprint functions by a single one 2004-09-14 17:19:34 +00:00
jdolecek
80a2cb5245 rename 'sp' variable to 'ap' in adosfs_pathconf(), so that it matches other
filesystems and avoid silly pastos
2004-09-14 16:59:40 +00:00
jdolecek
120bb37404 remove COMPAT_AOUT 2004-09-14 16:57:31 +00:00
jdolecek
3ea04717bf do not include "compat/aout/files.aout", COMPAT_AOUT is soon to be removed 2004-09-14 16:51:57 +00:00
simonb
553aeff41f Remove the remains of an old comment that doesn't apply any more. 2004-09-14 15:19:35 +00:00
drochner
6453b0fcb2 fix wrong asm .end names which caused assembler warnings,
from Nicolas Joly per PR port-alpha/26945
2004-09-14 11:27:22 +00:00
skrll
d8390279f9 Fix typos/pastos. 2004-09-14 10:58:45 +00:00
simonb
c5b66303ed White space nit. 2004-09-14 09:00:24 +00:00
simonb
35817977ee Remove an unused event counter. 2004-09-14 08:40:26 +00:00
simonb
357f38915a Tidy up a little. 2004-09-14 08:22:33 +00:00
lukem
ade2bb0154 Whitespace tweaks.
Remove vendor RCSID, since it's out of sync already (due to manual patches).
2004-09-14 00:38:37 +00:00
lukem
90a0bf7bae Use ieee80211_find_rxnode() function instead of ieee80211_find_node()
and ieee80211_ref_node().  From Damien Bergamini.
2004-09-14 00:35:10 +00:00
lukem
25429a05fb Correctly synchronize DMA mapping for transmission buffer descriptors.
From Damien Bergamini.
2004-09-14 00:34:19 +00:00
lukem
8c838d97d0 Improve monitor mode support. From Damien Bergamini 2004-09-14 00:32:55 +00:00
lukem
9e6574e2c2 Add IEEE802.11 radiotap support. From Damien Bergamini. 2004-09-14 00:31:20 +00:00
lukem
2cc0c73c82 Whitespace tweaks from Damien Bergamini.
Whitespace tweaks by me.
Remove vendor RCSID, since it's out of sync already (due to manual patchs).
2004-09-14 00:27:26 +00:00
fvdl
2a1aa1e67d Remove some devices (sync with i386). 2004-09-13 22:33:47 +00:00
jdolecek
f16bab2269 bsd_to_linux_statfs():
- filesystem size is expressed in number of fragments, not blocks;
  this fixes computed filesystem sizes for Linux df(1) and other Linux
  binaries using statfs(2) for filesystems, which use different value
  for frament and block, such as FFS
- use FS f_namemax instead of always using MAXNAMLEN
2004-09-13 20:09:44 +00:00
jdolecek
a6894024dd dostatvfs(): zero the statvfs structure before calling filesystem code, so that
unset parts would have defined value and not pass random parts of kernel stack
2004-09-13 20:02:20 +00:00
jdolecek
c407d0a5ca copy_statvfs_info(): copy f_namemax too 2004-09-13 19:45:21 +00:00
jdolecek
caffd8ef28 set mp->mnt_stat.f_namemax on filesystem mount for use by statvfs, and use
the value for also pathconf(_PC_NAME_MAX) to keep the two in sync
2004-09-13 19:25:48 +00:00
jdolecek
2993272a0c set mp->mnt_stat.f_namemax on filesystem mount, for use by statvfs 2004-09-13 19:19:44 +00:00
drochner
df80bed99c put EISA attachment specific code inside "#if NPCEB > 0",
to avoid references to EISA variables if "pceb" is not defined in
kernel configurations, and save some bytes
tested by Havard Eidnes (or his colleague:-)
2004-09-13 18:42:59 +00:00
drochner
11ff62378b add "joy" 2004-09-13 17:26:28 +00:00
drochner
103deb3575 use config_found() instead of config_found_sm() if no submatch
function is used
2004-09-13 15:14:12 +00:00
drochner
a02e2488a0 autoconf cleanup: turn xxxsubmatch() functions into the locator
passing variants
2004-09-13 14:57:31 +00:00
drochner
a48272e3d0 pass locators to tlsbsubmatch()
XXX the "offset" locator is unused appearently, assume that "0"
is a sensible value
2004-09-13 14:48:46 +00:00
drochner
cb1ceb0bce remove "pcibus" and "isabus" from "mainbus" -- neither of them
attaches directly
cleanup a comment
2004-09-13 14:38:37 +00:00
drochner
b1ce7363e0 clean up the questionable use of sabtty_match() as submatch function
(with no useful contents), and implement a real submatch function instead
2004-09-13 14:32:38 +00:00
drochner
6c73a9561e nothing attaches to a "sabtty", so there is no need for an
interface attribute
2004-09-13 14:29:38 +00:00
drochner
2578f8fc3c remove unused variable 2004-09-13 14:08:39 +00:00
drochner
96b589fc18 a round of autoconf cleanup:
-convert submatch() style functions (passed to config_search() or
 config_found_sm()) to the locator passing variants
-pass interface attributes in some cases
-make submatch() functions look uniformly as far as possible
-avoid macros which just hide cfdata members, and reduce dependencies
 on "locators.h"
2004-09-13 12:55:47 +00:00
drochner
d758c65552 remove the ppbus_print_child() function which is pointless as used here 2004-09-13 12:49:58 +00:00
drochner
8fd40ab43d "gtpci" doesn't provide an ISA bus, so it shouldn't have an "isabus"
attribute
2004-09-13 12:36:18 +00:00
drochner
b04ad75025 use locator passing versions of xxxsubmatch() and simplify the code by
using arithmetics instead of case statements
2004-09-13 12:34:00 +00:00
drochner
a987cab220 remove macros which just hide cfdata internals
(and are used at one place only)
2004-09-13 12:22:52 +00:00
tron
428bbd1acc Const-ify last change properly. 2004-09-13 10:52:34 +00:00
tron
c4bb165efd Add a few extra type casts to make C++ happy. This fixes build problems
in e.g. "libsupc++".
2004-09-13 10:33:43 +00:00
chs
cbc396ce30 work around a binutils bug where converting ELF kernels to a.out with objcopy
produces corrupted binaries when the link_set_* sections extend into another
page after the end of the .text section by using a generated an ldscript that
puts all the link_set_* data into the .text section in the first place.
2004-09-13 09:39:40 +00:00
thorpej
a30ebb7365 Avoid warnings about conversions from "unsigned long long" to "unsigned int"
and from "unsigned int" to "unsigned long long".
2004-09-13 01:46:39 +00:00
thorpej
10b55261a1 To quote C99 6.3.1.1:
If an int can represent all values of the original type, the value is
converted to an int; otherwise, it is converted to an unsigned int. These
are called the integer promotions. 48) All other types are unchanged by
the integer promotions.


So, cast an "unsigned short" to an "unsigned int" before right-shifting it
in order to avoid a lint warning.
2004-09-13 01:24:46 +00:00
thorpej
77f08a265c Move the 16/32-bit encode/decode to/from octet stream routines from
kern_uuid.c to sys/endian.h (where FreeBSD has them), and add 64-bit
variants.
2004-09-12 23:17:37 +00:00
thorpej
e7b13cc120 Correct a comment. 2004-09-12 22:52:58 +00:00
he
b119cd7a61 Enclose initialization of NCR_VARIANT_NCR53C400 in an ifdef on
NCR5380_USE_BUS_SPACE, to make this build again on acorn32, mac68k,
pc532, and sun3.  This is done under the assumption that it's
somewhat doubtful that any of those machines will encounter that
chip variant.

The acorn32 and mac68k parent drivers (csa and sbc) are listed in
ncr5380var.h as "easy to convert", but it's evident that noone have
stepped up to that challenge yet.  Sun3 and pc532 needs bus.h first,
which they apparently don't have at the moment.
2004-09-12 18:05:46 +00:00
jdolecek
9cc50db4c5 if passed sockaddr has family AF_UNSPEC, use socket family of the socket
the sockaddr is used for

this fixes bind() problem in Linux version of Theocracy, testing
by Thomas Klausner
2004-09-12 15:32:55 +00:00
jdolecek
8c73815634 remove the commented COMPAT_AOUT - it's not present in the other
kernel configs neither
2004-09-12 12:49:22 +00:00
jdolecek
ca7fc04a65 use 'have_toupper' variable for awk toupper() function existence test, rather
than 'isgawk' - e.g. nawk has toupper() too
2004-09-12 11:24:15 +00:00
jdolecek
f7ec3be35d use native syscallnames[] for SYSCALL_DEBUG 2004-09-12 11:09:32 +00:00
jdolecek
f83c14f534 only include emulation syscallnames with SYSCALL_DEBUG, it's not used otherwise 2004-09-12 10:38:25 +00:00
dsl
4b313d03d3 Need %ah == 0 (not 0xff) in order to find the correct partition table entry
when simulating a key press in the non-interactive mbr code.
Fixes bug introduced in rev 1.10 - older versions worked because %ah
happened to be 0!
Fixes PR bin/26919
2004-09-12 08:41:47 +00:00
he
936dfb04a0 More removal of references to aoutm68k_syscalls.c, following that file's
removal.  Allows our m68k ports to build again.
2004-09-12 08:04:50 +00:00
yamt
1304a56139 m_split: restore a behaviour on M_PKTHDR, which was unintentionaly
changed when i added m_copyback_cow.
2004-09-11 19:55:19 +00:00
bouyer
bf02dcb5ca If we're not going to handle a reset request because one if already pending,
decrease queue_freeze that we just increased (otherwise the queue stay
frozen after the reset).
Should fix kern/26873 and port-i386/26910.
2004-09-11 18:01:58 +00:00
christos
392086fb66 bind the scrolling keys by default. 2004-09-11 04:47:43 +00:00
bouyer
a480086121 pool_prime() the ncr53c9x_ecb pool with one element (this will cause one page
to be allocated anyway). scsipi can deal with resources shortage, but if this
pool goes down to 0 pages we can deadlock with the scsipi_xfer, vnode or
inode pools.
Also update a comment, despite resources accounting we can return
ATAPTER_RESOURCES_SHORTAGE here.
2004-09-10 23:44:29 +00:00
wiz
be98c25ecf Fix typo in comment. 2004-09-10 22:22:20 +00:00
reinoud
a4ea5c43d3 Add wsmux and keyboard RAW support for better X 2004-09-10 21:09:57 +00:00
reinoud
52a3b4ec4a Add USB-2 support to Alpha 2004-09-10 21:09:06 +00:00
nathanw
3a1db40022 Spelling in comment. 2004-09-10 15:27:10 +00:00
darrenr
ec6c370522 Regen'd to add Sierra Wireless AirCard 580 2004-09-10 13:59:07 +00:00
darrenr
b5e2dc9cd7 Add Sierra Wireless AirCard 580 (1xEV-DO) 2004-09-10 13:56:32 +00:00
yamt
1c14eba60e vndstrategy/vndiodone:
don't call bgetvp/brelvp here.  they are not interrupt safe.
as we're doing something like direct i/o,
there's no point to call them anyway.
2004-09-10 10:00:33 +00:00
yamt
6a2c652541 regen. 2004-09-10 09:38:17 +00:00
yamt
472da495d3 VOP_BMAP isn't protected by vnode locks these days. 2004-09-10 09:37:41 +00:00
yamt
77641b98f3 g/c no longer used definition of fs_maxfilesize. 2004-09-10 09:36:05 +00:00
yamt
d37ce14181 pflog_packet: use bpf_mtap2().
(our bpf_mtap() is more "strict" about mbufs
than openbsd's one is.  eg. M_PKTHDR should be set properly.)
2004-09-10 08:48:32 +00:00
jdolecek
725814cc94 garbage-collect aoutm68k_syscalls.c, it's just taking up space (it's not used) 2004-09-10 07:11:26 +00:00
jdolecek
734ccdcf2b fix/adjust comment a little 2004-09-10 06:09:15 +00:00
bouyer
4849b82163 Make the xxstart() functions reentrant again, as some drivers HBA can call
scsipi_done() from their scsipi_request().
For this, add a struct scsipi_xfer * argument to scsipi_command().
If not NULL scsipi_command() will use this to enqueue this xfer, otherwise
it'll try to allocate a new one. This scsipi_xfer has to be allocated
and initialised by scsipi_make_xs() or equivalent.
In xxstart(), allocate a scsipi_xfer using scsipi_make_xs(), and if not NULL,
dequeue the buffer before calling scsipi_command(). This makes sure that
scsipi_command() will not fail, and also makes sure that xxstart() won't
be called again between the BUFQ_PEEK() and BUFQ_GET().

Fix "dequeued wrong buf" panics reported by Juergen Hannken-Illjes in
private mail and Andreas Wrede on current-users@.
Thanks to Jason Thorpe and Chuck Silver for review, and Andreas Wrede for
testing the patch.
2004-09-09 19:35:30 +00:00
yamt
c3b066f850 pull following fixes from openbsd. ok'ed by itojun.
> ----------------------------
> revision 1.58
> date: 2004/06/23 04:34:17;  author: mcbride;  state: Exp;  lines: +5 -3
> pfr_commit_ktable calls functions that can result in the current
> ktable being destroyed, which makes it unsafe in a SLIST_FOREACH.
>
> Fix from Chris Pascoe
> ----------------------------
> revision 1.56
> date: 2004/06/11 05:21:20;  author: mcbride;  state: Exp;  lines: +5 -3
> Eliminate a dereference after pool_put when an inactive/no-longer referenced
> table is destroyed in pfr_setflags_ktable.
>
> Fix from Chris Pascoe
> ----------------------------
2004-09-09 14:56:00 +00:00
tron
e5f111e223 Next attempt to fix the RCS Id. *sigh* 2004-09-09 10:45:52 +00:00
tron
e22003b771 Finish linux_sys_exit_group() with a (never reached) "return" statement so
that GCC will actually compile this.
2004-09-09 07:02:50 +00:00
thorpej
e49a083756 Add the EFI System Partition MBR partition type. 2004-09-09 04:55:53 +00:00
thorpej
bba02e25de Add the GPT Protective MBR partition type. Sort MBR ptype constants. 2004-09-09 04:19:38 +00:00
enami
051622a62d Print missing newline on attach. 2004-09-09 01:40:13 +00:00
drochner
27a661f0fb use interface attribute / locator passing versions
of config_search()
2004-09-08 20:13:52 +00:00
drochner
bbd13d13d1 use interface attribute / locator passing versions
of config_search(),
and some KNF/whitespace cleanup
no functional changes
2004-09-08 20:12:20 +00:00
drochner
4eda675cde use interface attribute / locator passing versions
of config_search()
2004-09-08 20:08:46 +00:00
drochner
57cc3c5e5e remove a redundant check 2004-09-08 19:59:15 +00:00
jdolecek
3b18315bb9 regen: add exit_group(2) 2004-09-08 19:46:17 +00:00
jdolecek
78569d6650 implement basic exit_group(2), which just terminates calling thread;
apparently not many apps use thread groups yet, at least not with default
SuSE 9.1 libraries, so this is enough for now
2004-09-08 19:45:21 +00:00
jdolecek
6b3117d804 do more strict flag checking in clone(2) (matches what Linux does) 2004-09-08 19:41:24 +00:00
jdolecek
f2d3769fa4 compute the shared memory location instead of hardcoding list of 'known'
pos3 values for 8013 variants; fixes attachment for some variants

patch provided in PR port-i386/26877 by Dave Barnes
2004-09-08 19:09:43 +00:00
jdolecek
eefdd9368e fix mask for getting WD8003 I/O address location, so it works even
for 0x300-0x3E0 bases; also miscellaneous white-space and comment fixes

patch provided by in PR port-i386/26871 by Dave Barnes
2004-09-08 17:44:53 +00:00
yamt
31715f4eb9 remove no longer needed caddr_t casts to reduce diffs from openbsd. 2004-09-08 12:11:25 +00:00
yamt
7b09a1e089 m_copyback, m_copyback_cow, m_copydata:
- caddr_t -> void *
- constify.
partly from openbsd.
2004-09-08 12:00:28 +00:00
yamt
80c1fe0c1d - move a common part of MEXTREMOVE and MFREE into a inline function.
- wrap more definitions in #ifdef _KERNEL.
2004-09-08 11:59:01 +00:00
jmmv
5a9d24809c Set valid values for the (commented out) WS_DEFAULT_COLATTR and
WS_DEFAULT_MONOATTR options.  This way, if a user blindly uncomments
them, he will not get a build failure.  Addresses PR kern/26503.
2004-09-08 11:38:22 +00:00
yamt
d08391b2a3 buf_trim: a buffer grabbed by getnewbuf() should be clean and anonymous.
thus, there's no need to check and handle B_WANTED here.
2004-09-08 10:20:15 +00:00
yamt
64308e90f3 arc4random: fix a bug introduced by rev.1.7.
actually generate four bytes random value, rather than
leaving a byte always zero.
2004-09-08 04:06:15 +00:00
enami
5cdda6c35f ath_debug is bitmask and takes much wider value than 0, 1, or 2. 2004-09-07 01:15:59 +00:00
enami
a4ee532ba4 Adjust caller for net/if_ieee80211subr.c rev 1.11 change; the argument
`reassoc' is replaced with testing if the type is ..._REASSOC_REQ.
2004-09-07 01:07:40 +00:00
enami
872adc6ce0 No need to disable if we failed before enabling it. 2004-09-07 00:24:18 +00:00
thorpej
9946bbdb7a Use CPUFLAGS for codegen options. 2004-09-06 23:41:21 +00:00
uwe
7caf846e65 Add lxtphy.
Requested in PR port-hpcsh/26863.
2004-09-06 23:32:59 +00:00
bouyer
76f52e0733 Fix comment: xxstart() can also be called from xxrestart() 2004-09-06 20:38:14 +00:00
is
0297f3ae8c While in graphics mode, short-circuit text-mode functions that would destroy
graphics state. Same fix as ite_cl.c 1.4.
Problem reported, and original fix provided, by Pawel Chwalowski in PR 26788
(but had to be recreated because the original patch didn't apply due to
a whitespace problem).
2004-09-06 18:12:54 +00:00
drochner
ea081c8468 fix a botch in config_found->config_found_ia transition,
by Havard Eidnes
2004-09-06 12:38:17 +00:00
yamt
d676f9e5b0 fr_check_wrapper: as ipf modifies application data as well when
doing application proxy, it's needed to ensure that the whole packet
is writable here.
2004-09-06 10:46:02 +00:00
yamt
056303b850 rip6_output: redo raw_ip6.c 1.67-1.67, using m_copyback_cow. 2004-09-06 10:05:14 +00:00
yamt
421ffa4969 pfil4_wrapper, pfil6_wrapper:
ensure that mbufs are writable beforehand as pf assumes it.
PR/26433.
2004-09-06 10:01:39 +00:00
yamt
d73bcfeb33 fr_check_wrapper, fr_check_wrapper6:
ensure that mbufs are writable beforehand as ipf assumes.
PR/26773 and PR/26850.
2004-09-06 10:00:43 +00:00
darrenr
9ec77d6329 Do not allow packets flagged with "out-of-window" (oow) to match "keep state"
rules and try to prevent such rules ("keep state with oow") from being loaded
into the kernel.

Pr: kern/26581
2004-09-06 09:55:13 +00:00
yamt
e2139bcdc8 add m_copyback_cow and m_makewritable. 2004-09-06 09:43:29 +00:00
sekiya
8590eac465 Use the mace interrupt handler for PCI interrupts.
From KIYOHARA Takashi
2004-09-06 07:24:06 +00:00
dsl
4a83eca5d5 Save 2 more bytes (by adjusting the ERR_NO_LBA setup).
Use up all the space by adding a short banner message.
'Fn diskn' for bootsel and 'NetBSB MBR boot' for the non-bootsel code.
2004-09-05 21:42:43 +00:00
jdolecek
6c0c833e0d change the defines for cdev and bdev majors to 162, which is assigned
to vinum now

fixes PR kern/26855 by Andreas Wiese
2004-09-05 15:10:25 +00:00
sekiya
7e244e5e53 Oooops, iaa.iaa_name must be initialized. 2004-09-05 13:32:10 +00:00
sekiya
847a930d95 Use config_found_ia() rather than config_found(). 2004-09-05 11:48:34 +00:00
jdolecek
ec083dc43c linux_sa_get: g/c curproc use, we get the process as one of arguments 2004-09-05 09:38:17 +00:00
jdolecek
4032a79979 improve the (#ifdef DEBUG_LINUX) socketcall argument dump code:
- print the socketcall type
- special case socket(2) call, it's also the only one with first argument
  not being a socket descriptor
- only dump the relevant part of linux_socketcall_dummy_args, instead
  of always the whole structure
2004-09-05 09:09:02 +00:00
jdolecek
bae3c8fbb8 add some newer clone flags 2004-09-05 07:22:20 +00:00
skd
2d0c1ccea9 Fill out correct cap variable so that DMA works again. 2004-09-05 05:07:41 +00:00
manu
85111f912e IPv4 PIM support, based on submission from Pavlin Radoslavov on tech-net@ :
two new files I forgot to add on the first cvs commit.
2004-09-04 23:32:29 +00:00
manu
6e3c639957 IPv4 PIM support, based on a submission from Pavlin Radoslavov posted on
tech-net@
2004-09-04 23:29:44 +00:00
manu
35053e0e8d Recognize bundles as mach-O executables 2004-09-04 23:21:26 +00:00
tsutsui
52b46dcf6f - Use ANSI function declarations and make some functions static.
- Some KNF
2004-09-04 13:43:11 +00:00
tsutsui
378871cd27 Include ioconf.h to declare struct cfdriver. 2004-09-04 11:28:32 +00:00
skrll
ab05973128 Use "NULL" instead of "(struct foo *)0". 2004-09-04 07:09:35 +00:00
thorpej
e489b76d88 More complete fix for overriding CPUFLAGS and also apply fix to bootxx,
from Valeriy Ushakov.
2004-09-03 21:55:17 +00:00
thorpej
f340ce91f0 Override CPUFLAGS to empty so that a CPUFLAGS setting in the user's
mk.conf don't affect the C options we need to build the boot loader.
2004-09-03 18:25:04 +00:00
darrenr
02c34673a3 add a per-socket counter for dropped UDP packets when the internal buffers
are full.
2004-09-03 18:14:09 +00:00
leo
86c572bcee Correct typo in copyright notice. (noticed by Hubert Feyrer). 2004-09-03 14:07:57 +00:00
smb
57643d12c5 Don't try and add a state session if the packet has already been checked
and marked as out of window - trying to do the add will result in a failure
and the packet being blocked, incorrectly.

Committed By: darrenr
Tested By: smb
2004-09-03 04:18:09 +00:00
he
6c2143cef0 Make this driver recognize LSI Logic MegaRAID 320-2 RAID controllers.
Fixes PR#26834, patch from that PR.
2004-09-02 21:12:42 +00:00
chs
38f9a8eb8b make this compile on platforms where PAGE_SIZE is not a compile-time constant. 2004-09-02 12:39:56 +00:00
scw
ecadc37220 Fix the rcsid. 2004-09-02 12:23:09 +00:00
scw
db255697d0 Apply suggested changes from PR port-powerpc/24830 arch/powerpc/ibm4xx:
Bad register constraints in copyin(), copyout(), copyinstr(), copyoutstr(),
and delay().
2004-09-02 08:22:58 +00:00
tacha
163c7d245a Make this compile again. 2004-09-02 02:18:38 +00:00
drochner
1bf98e790e one more case: don't use ISACF_* constants internally 2004-09-01 21:30:25 +00:00
drochner
d2d513bdd8 more namespace sanity: ISACF_*_DEFAULT constants are for ISA
frontends, not for general use
2004-09-01 21:26:29 +00:00
drochner
639a892ed1 symbolic constants are good, but this is another namespace 2004-09-01 21:13:44 +00:00
drochner
c6ad150573 use the locator passing config_found/submatch, and limit use of the
"locators.h" header to the .c file
2004-09-01 21:09:09 +00:00
drochner
789b04b977 include locators.h from .c only, avoids unnecessary dependencies 2004-09-01 20:59:30 +00:00
drochner
0b2a837787 use a submatch function for drive attachment, and pass locators
just for sanity
2004-09-01 20:57:58 +00:00
dsl
ab6077db18 Remove the functionality added in rev 1.7.
With no menu items the mbr_bootsel code will wait for the timeout (default
10 seconds) and then boot the default device - usually the active partition.
Forcing the 'active' partition was wrong - jmmv has a system which needs
to boot from hd1 where hd0 has no mbr partition info.
I suspect the problem I though rev 1.7 fixed was actually caused by
disklabel copying sector zero of the disk to sector zero of the partition!
Gains another 9 bytes of free space, mbr_bootsel now has 20 free bytes.
2004-09-01 20:31:20 +00:00
tsutsui
221c318874 - Adapt to the MI wdc driver changes which added the notion of
"shadow registers":
  http://mail-index.netbsd.org/source-changes/2004/05/25/0048.html
- While here, also fix accesses to CTL regsters to use the correct address.

Now the cobalt bootloader works again.

XXX Maybe we should make this SA wdc driver MI...
2004-09-01 15:54:39 +00:00
yamt
175e99933e uvm_pagefree: when orphaning an A->K loaned page,
- decrement uvmexp.anonpages as it's no longer an anon page.
	- null out anon->u.an_page as the anon no longer own the page.
uvm_anfree: add related assertions.
2004-09-01 11:53:38 +00:00
yamt
23c60dbfe0 uvm_anfree: remove a comment which is no longer true. 2004-09-01 10:09:26 +00:00
uwe
af4511cccc Force STRIPFLAG to be empty after bsd.own.mk is included, so that
any value set in /etc/mk.conf is overriden.
2004-08-31 22:57:13 +00:00
simonb
ac20296fee Remove the unused MKTTE macro. 2004-08-31 01:06:12 +00:00
drochner
266668cb7d There is no point in using config_found_sm() if there is no submatch function.
(actually, there should be one...)
2004-08-30 18:28:33 +00:00
drochner
9a623ba311 use the locator-passing variant of autoconf submatch and use constants
from locators.h
2004-08-30 18:27:21 +00:00
thorpej
e9dbc9253e De-__P. 2004-08-30 16:15:03 +00:00
tsutsui
0f0f2c4943 Remove .mdebug.abi32 and .comment sections created by binutils-2.14
on converting kernels into ECOFF.
ARC BIOS may be confused by these sections without valid address.
2004-08-30 16:08:24 +00:00
drochner
070747cba1 remove the (superfluous) definition of "cpu" as an interface attribute 2004-08-30 15:35:20 +00:00
drochner
46289e1fef Phase out the use of a string as first "attach args" member to control
which bustype should be attached with a specific call to config_found()
(from a "mainbus" or a bus bridge).
Do it for isa/eisa/mca and pci/agp for now. These buses all attach to
an mi interface attribute "isabus", "eisabus" etc., and the autoconf
framework now allows to specify an interface attribute on config_found()
and config_search(), which limits the search of matching config data
to these which attach to that specific attribute.
So we basically have to call config_found_ia(..., "foobus", ...) where
such a bus is attached.
As a consequence, where a "mainbus" or alike also attaches other
devices (eg CPUs) which do not attach to a specific attribute yet,
we need at least pass an attribute name (different from "foobus") so
that the foo bus is not found at these places. This made some minor
changes necessary which are not obviously related to the mentioned buses.
2004-08-30 15:05:15 +00:00
martti
c72a29a530 Better kernel module for IPF (kern/26112 by Peter Postma) 2004-08-30 11:32:33 +00:00
drochner
5fa053333d add centralized {eisa,isa,pci,agp,mca}busprint() functions which do
what tens of the bus' parents foo{...}bridge_print()s scattered around do
2004-08-30 10:30:38 +00:00
drochner
13e2ec357a there is (appearently) no reason for the "bktr" driver to carry a
"pcibus" attribute, so remove it
2004-08-30 10:10:34 +00:00