summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Save flags returned by vn_open and use them when calling vn_close.johan2002-07-211-6/+11
| | | | | Reviewed by: bde Approved by: sheldonh (mentor)
* Do not pass a thread with the state TDS_RUNQ to setrunqueue(), otherwisetanimura2002-07-211-1/+4
| | | | assertion in setrunqueue() fails.
* style(9)ize the whole fileimp2002-07-213-1422/+1476
| | | | Approved in concept a long time ago by: msmith
* Fix more abuse of __FreeBSD__ to detect version.imp2002-07-211-63/+0
|
* Stop abusing NPCI for code that doesn't even work. Emit a warning.peter2002-07-211-5/+1
|
* Move SWTCH_OPTIM_STATS related code out of cpufunc.h. (This sort of statpeter2002-07-217-29/+21
| | | | gathering is not an x86 cpu feature)
* Remove abuse of NBKTR - this was always a NOP on freebsd. We neverpeter2002-07-213-11/+1
| | | | compiled this stuff if NBKTR was zero.
* Remove #if 0'ed abuse of NPCIpeter2002-07-211-3/+0
|
* Remove #include <pci.h> - there is no abuse of NPCI herepeter2002-07-211-1/+0
|
* The CNW_801 and CNW_802 are wireless cards that the cnw driver supports.imp2002-07-211-2/+0
|
* Don't abuse __FreeBSD__ as version number. Since it was >= 3, removeimp2002-07-211-2/+0
| | | | the ifdef completely.
* Minor whitespace nits. remove #if 1 and #endif pair, but not code between.imp2002-07-212-7/+1
|
* cardbus attachment.imp2002-07-211-0/+1
|
* Reset the 16-bit bus and turn off power. More work in this area mayimp2002-07-211-1/+7
| | | | be needed, but this seems sane on my laptop.
* Remove __FreeBSD__ version abuse, also de-orbit support for FreeBSD 2imp2002-07-212-447/+0
| | | | and FreeBSD 3.
* o If the page returned by vm_page_grab(VM_ALLOC_ZERO) isn't prezeroed,alc2002-07-214-0/+8
| | | | | | zero it. Reviewed by: dfr, peter
* Add bus_child_present and the child_present method to bus_if.mimp2002-07-213-4/+39
|
* Fix overflows in intermediate calculations in sysctl_msec_to_ticks().jdp2002-07-201-2/+2
| | | | | | | At hz values of 1000 and above the overflows caused net.inet.tcp.keepidle to be reported as negative. MFC after: 3 days
* Don't export 'struct ipq' from kernel, instead #ifdef _KERNEL. As kernelrwatson2002-07-201-0/+2
| | | | | | | | | | data structures pick up security and synchronization primitives, it becomes increasingly desirable not to arbitrarily export them via include files to userland, as the userland applications pick up new #include dependencies. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Do preserve the error result from calling p_cansee() and use that whenrwatson2002-07-201-3/+1
| | | | | | | failing because of the error. Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* Add support for writing to mapping high memory for pccard memoryimp2002-07-204-0/+21
| | | | | | | | | | windows. Right now we only support pci chips that are memory mapped. These are the most common bridges in use today and will help a large majority of the users. I/O mapped PCI chips support this functionality in a different way, as do some of the ISA bridges (but only when mounted on a motherboard). These chips are not supported by this change.
* o Lock page queue accesses by vm_page_try_to_cache(). (The accessesalc2002-07-203-1/+5
| | | | | in kern/vfs_bio.c are already locked.) o Assert that the page queues lock is held in vm_page_try_to_cache().
* o Assert that the page queues lock is held in vm_page_try_to_free().alc2002-07-201-0/+2
|
* o Lock page queue accesses by vm_page_cache() in vm_fault() andalc2002-07-203-2/+5
| | | | | vm_pageout_scan(). (The others are already locked.) o Assert that the page queues lock is held in vm_page_cache().
* minor nit in commentsimp2002-07-201-1/+0
|
* o Lock accesses to the active page queue in vm_pageout_scan() andalc2002-07-201-2/+4
| | | | vm_pageout_page_stats().
* ebus is not a 'count' device. There are no NEBUS references.peter2002-07-201-1/+1
|
* Change the max IRQ from 63 to 255. I realize we have to block some outpeter2002-07-201-1/+1
| | | | | still for the IPI vectors, but 63 isn't enough. There is an fxp at IRQ 86 on the Itanium2 box I have.
* o Lock page queue accesses by vm_page_cache() in vm_contig_launder().alc2002-07-201-2/+4
| | | | o Micro-optimize the control flow in vm_contig_launder().
* o Remove dead and/or unused code.alc2002-07-202-17/+1
|
* Add a missing argument to the stub for softdep_setup_freeblocks.benno2002-07-201-1/+2
| | | | Forgotten by: mckusick
* Turn on -Wformatpeter2002-07-201-1/+1
|
* Fix printf format errorspeter2002-07-201-3/+3
|
* Work around some nasty bugs on the [beta] Itanium2's E1000 UNDI driver.peter2002-07-201-5/+20
| | | | | | | | | | | | | | Bug#1: The GetStatus() function returns radically different pointers that do not match any packets we transmitted. I think it might be pointing to a copy of the packet or something. Since we do not transmit more than one packet at a time, just wait for "anything". Bug#2: The Receive() function takes a pointer and a length. However, it either ignores the length or otherwise does bad things and writes outside of ptr[0] through ptr[len-1]. This is bad and causes massive stack corruption for us since we are receiving packets into small buffers on the stack. Instead, Receive() into a large enough buffer and bcopy the data to the requested area.
* Disable loader ufs support. It causes the loader to crash on the Itanium2peter2002-07-202-2/+2
| | | | | box that I have. We have no EFI disk drivers yet anyway (maybe that is the problem).
* Fix printf format errorspeter2002-07-202-4/+4
|
* Regeneratepeter2002-07-209-4788/+933
|
* Infrastructure tweaks to allow having both an Elf32 and an Elf64 executablepeter2002-07-2050-2740/+7922
| | | | | | | | | | | | | | | handler in the kernel at the same time. Also, allow for the exec_new_vmspace() code to build a different sized vmspace depending on the executable environment. This is a big help for execing i386 binaries on ia64. The ELF exec code grows the ability to map partial pages when there is a page size difference, eg: emulating 4K pages on 8K or 16K hardware pages. Flesh out the i386 emulation support for ia64. At this point, the only binary that I know of that fails is cvsup, because the cvsup runtime tries to execute code in pages not marked executable. Obtained from: dfr (mostly, many tweaks from me).
* Fix a warning:peter2002-07-201-1/+2
| | | | ffs_softdep.c:1630: warning: int format, different type arg (arg 2)
* Add PCI IDs for the A, B, and C UHCI controllers in the ICH4.jhb2002-07-192-0/+54
| | | | Sponsored by: The Weather Channel
* Add PCI ID for the ICH4 ATA100 controller.jhb2002-07-192-0/+4
| | | | Sponsored by: The Weather Channel
* Set P_NOLOAD on the pagezero kthread so that it doesn't artificially skewpeter2002-07-191-1/+7
| | | | | | the loadav. This is not real load. If you have a nice process running in the background, pagezero may sit in the run queue for ages and add one to the loadav, and thereby affecting other scheduling decisions.
* o Use vm_page_alloc(... | VM_ALLOC_WIRED) in place of vm_page_wire().alc2002-07-193-12/+7
|
* Add support for probing secondary buses on the ServerWorks Grand Championgallatin2002-07-192-0/+22
| | | | | | | | chipset used for P4-Xeon machines PR: kern/38894 Tested-by: "Marc G. Fournier" <scrappy@hub.org> Submitted-by: Mark Tinguely (partially)
* Add the tcps_sndrexmitbad statistic, keep track of late acks that causeddillon2002-07-193-0/+3
| | | | unnecessary retransmissions.
* Wrap a line longer than 80 characters.mux2002-07-191-2/+2
|
* - Merge the mount options at MNT_UPDATE time with vfs_mergeopts().mux2002-07-191-19/+113
| | | | | | | | - Sanity check the mount options list (remove duplicates) with vfs_sanitizeopts(). - Fix some malloc(0)/free(NULL) bugs. Reviewed by: rwatson (some time ago)
* Add the ebus sio attachment.obrien2002-07-191-0/+1
|
* Add support to UFS2 to provide storage for extended attributes.mckusick2002-07-1917-274/+1145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As this code is not actually used by any of the existing interfaces, it seems unlikely to break anything (famous last words). The internal kernel interface to manipulate these attributes is invoked using two new IO_ flags: IO_NORMAL and IO_EXT. These flags may be specified in the ioflags word of VOP_READ, VOP_WRITE, and VOP_TRUNCATE. Specifying IO_NORMAL means that you want to do I/O to the normal data part of the file and IO_EXT means that you want to do I/O to the extended attributes part of the file. IO_NORMAL and IO_EXT are mutually exclusive for VOP_READ and VOP_WRITE, but may be specified individually or together in the case of VOP_TRUNCATE. For example, when removing a file, VOP_TRUNCATE is called with both IO_NORMAL and IO_EXT set. For backward compatibility, if neither IO_NORMAL nor IO_EXT is set, then IO_NORMAL is assumed. Note that the BA_ and IO_ flags have been `merged' so that they may both be used in the same flags word. This merger is possible by assigning the IO_ flags to the low sixteen bits and the BA_ flags the high sixteen bits. This works because the high sixteen bits of the IO_ word is reserved for read-ahead and help with write clustering so will never be used for flags. This merge lets us get away from code of the form: if (ioflags & IO_SYNC) flags |= BA_SYNC; For the future, I have considered adding a new field to the vattr structure, va_extsize. This addition could then be exported through the stat structure to allow applications to find out the size of the extended attribute storage and also would provide a more standard interface for truncating them (via VOP_SETATTR rather than VOP_TRUNCATE). I am also contemplating adding a pathconf parameter (for concreteness, lets call it _PC_MAX_EXTSIZE) which would let an application determine the maximum size of the extended atribute storage. Sponsored by: DARPA & NAI Labs.
* o Duplicate an odd side-effect of vm_page_wire() in vm_page_allocate()alc2002-07-191-1/+2
| | | | | | when VM_ALLOC_WIRED is specified: set the PG_MAPPED bit in flags. o In both vm_page_wire() and vm_page_allocate() add a comment saying that setting PG_MAPPED does not belong there.
OpenPOWER on IntegriCloud